現在工作每天都要寫工作進度
有時候小小一個動作
可以省很多時間做調整
這個bat是網路找的…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| SET TodayYear=%date:~2,2% SET TodayMonthP0=%date:~5,2% SET TodayDayP0=%date:~8,2%
IF %TodayMonthP0:~0,1% == 0 ( SET /A TodayMonth=%TodayMonthP0:~1,1%+0 ) ELSE ( SET /A TodayMonth=TodayMonthP0+0 )
IF %TodayMonthP0:~0,1% == 0 ( SET /A TodayDay=%TodayDayP0:~1,1%+0 ) ELSE ( SET /A TodayDay=TodayDayP0+0 )
echo 日期 %TodayYear%/%TodayMonthP0%/%TodayDayP0% pause "C:\Program Files (x86)\Microsoft Office\Office12\outlook.exe" /c ipm.note /m "mailto:'xxxxx'<ooooooo>;'xxxxx' <oooooo>;&subject=ZeYi-%TodayYear%%TodayMonthP0%%TodayDayP0% 工作回報&body=Dear all:"
|
參考來源:
The Will Will Web | 如何在 Batch 檔取得系統的日期、時間欄位 (第三版)
How to create an Outlook new email with specified command line?