Category Archives: Batch script

Microsoft Windows DOS or batch scripts

Windows bat script to get day of the week

rem Script to get the day of the week in windows command line rem ie Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday @echo off SETLOCAL SET /a count=0 FOR /F “skip=1” %%D IN (‘wmic path win32_localtime get dayofweek’) DO ( … Continue reading

Posted in Batch script, Windows | Leave a comment

DOS/Batch script to download a file with specific date format from password protected url

Here is a script using which you can download a file from url which is password protect using wget.exe (external small binary), which has a specific date format. ie. YYYY-MM-DD You can save this code as a download_zipfile.bat and schedule … Continue reading

Posted in Batch script, Windows | Leave a comment