当前位置:首页 >> 脚本专栏

批处理bat根据星期启动程序

@echo off
set no=%date:~13,14%
if %no%==一 goto :open
if %no%==二 goto :open
if %no%==三 goto :open
if %no%==四 goto :open
if %no%==五 goto :open
goto :eof


:open
start "VPC" "E:\Program Files\Microsoft Virtual PC\Virtual PC.exe"
start "MSN" "C:\Program Files\Windows Live\Messenger\msnmsgr.exe"
::start "QQ" "D:\Start\腾讯QQ"
::start "sms" "D:\Start\Fetion 2008.lnk"
start /min "OUTLOOK" "Outlook"
start /min "金山词霸" "D:\Start\金山词霸2007"
goto :eof