robocopy with environment variable on task scheduler return 0x10
System Admin
1
Posts
1
Posters
5
Views
1
Watching
-
I tried to copy files using robocopy but if i tried to append date and time to the folder name it will result to 0x10
%DATE:/=-% %time::=-%
the above code is the cause of the problem but it does run on cmd without any issue This is the complete sample action
robocopy /mir /copy:DAT /mot:30 "D:\Source File\file" "E:\Target Directory\backup %DATE:/=-% %time::=-%" /xd "D:\Source File\file\excluded"
any idea how i can fix this Thanks