Although I am a fan of vbscript, sometimes it’s still easier and faster to script in DOS batch scripting. Here are some compilation of the useful DOS commands.
%date% %time%
Output: 07/03/2009 22:13:37.82
Remarks: Sometimes you want to output the date & time stamp
%cd%
Output: C:\Windows\System32
Remarks: Get the working directory the batch file is running. Useful when you need to output a text file into the same working directory