- @echo off
- >周计算.vbs Echo aDate = InputBox("请输入一个日期:", "BY: fastslz",date)
- >>周计算.vbs Echo Wscript.Echo "W" ^& Right(Year(aDate) ,1) ^& DatePart("ww", aDate)
- for /f "delims=" %%i in ('cscript.exe //nologo 周计算.vbs') do set aDate=%%i&del 周计算.vbs
- Echo %aDate%
- pause
复制代码
- @echo off
- >星期计算.vbs Echo aDate = InputBox("请输入一个日期:", "BY: fastslz",date)
- >>星期计算.vbs Echo Wscript.Echo WeekDayName(DatePart("w", aDate))
- for /f "delims=" %%i in ('cscript.exe //nologo 星期计算.vbs') do set aDate=%%i&del 星期计算.vbs
- Echo %aDate%
- pause
复制代码
|