Batch to copy file from local pc to server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Batch to copy file from local pc to server



I want to make a backup everytime i shut down the pc. I tried to add script to shutdown in gpedit but didn't worked properly. I tried also to create task in scheduler task. Also my script doesn't copy all the files in the folder, i don't know why.



Script:


SET hour=%time:~0,2%
IF "%hour:~0,1%"==" " SET hour=0%time:~1,1%
SET folder=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%_%time:~6,2%
md destination
XCOPY /s/e "source*.*" destination





For testing purposes I would use the full path for the source and destination.
– Squashman
Aug 10 at 7:39









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS