I have a context menu add-in which points to a batch file to create a new folder with the current date. I've been using it successfully on my Windows 10 machine but wanted to share it with my coworker. On his Windows 10 machine, the batch fails and shows a different value for curr_date. I've checked his time and region settings against mine but everything matches. I don't have much experience with troubleshooting this type of issue. Does anyone have any ideas?
Error is "The syntax of the command is incorrect."
set curr_date=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
echo %curr_date%"
md %curr_date%NewProject
md %curr_date%NewProject\Deliverable
My machine curr_date prints:
"YYYYMMDD"
His machine curr_date prints:
"7/2"