xcopy "C:\RS\Automation - Reporting Service\CW\bella_%date:~4,2%-%date:~7,2%-%date:~10,4%.SLS" "C:\Program Files (x86)\Common Files\Countwise\Retail_Reporting\DATA" /e /y /h
xcopy "C:\RS\Automation - Reporting Service\CW\bella_%date:~4,2%-%date:~7,2%-%date:~10,4%.HRS" "C:\RS\Automation - Reporting Service\CW\bevello_%date:~4,2%-%date:~7,2%-%date:~10,4%.HRS" /e /y /h
I keep getting an error saying that I system file path cannot be found. This only occurs when the script is run as a scheduled task.
The directory is exist and it seems like problem with user permission.
Can anyone help?
Thanks!