- Blog - http://blog.bennett-scharf.com -

Windows shell script: putting date & time into a file

Posted By admin On 15. September 2007 @ 07:32 In Windows OS | No Comments

SET mydate=%DATE:~4,2%_%DATE:~7,2%_%DATE:~10,4%
echo mydate >> somefile.txt


Article printed from Blog: http://blog.bennett-scharf.com

URL to article: http://blog.bennett-scharf.com/2007/09/15/windows-shell-script-putting-date-time-into-a-file/

Click here to print.