First time making a bat file. I complied this code and on my pc it make a folder with the date stamp in a backup folder.
Works great on my pc but when i transfer it to another computer I get Syntax error. And no folder get created.
I think it has to do with the mkdir c:\backup\%DATE%
Please see the code below
@echo off
cls
echo Date format = %DATE%
echo dd = %date:~0,2%
echo mm = %date:~3,2%
echo yyyy = %date:~6,4%
echo.
mkdir c:\backup\%DATE%
Please all any help would be greatly appreciated. Regard Kenneth