* BATスクリプト 曜日の取得 [#g775379b]

 @echo off
 setlocal
 for /f %%d in ('"powershell [Int](Get-Date).DayOfWeek"') do set dow=%%d
 echo %dow%
 endlocal
 echo %dow%



** 参考 [#gb66a0e8]
http://stackoverflow.com/questions/11364147/setting-a-windows-batch-file-variable-to-the-day-of-the-week

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS