欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-03-22 16:33:14
@echo off set no=%date:~13,14% if %no%==一 goto :open if %no%==二 goto :open if...
@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