Hi Guys,
I need some help on running multiple commands in cmd using batch file in Windows 10 Home and one computer using XP home.
What I would like to do is crate a batch file that will run multiple commands as I would like to do a nightly back up from all my computers on my home network to a backup computer and USB drive using the xcopy command. So each computer will do a back up various folders to the network computer and to the local USB drive and I will be putting this batch file in the Task Scheduler
I been playing around with this and cant get it completely to work right.
@echo off
xcopy /W /E /H /R /Y “C:\Users\B\Documents\Tools” “\\WIN10SERVER\Tools” & xcopy /W /E /H /R /Y “C:\Users\B\Desktop\1A2” “\\WIN10SERVER\1A2 Key”
exit
The issue I’m having is I get this message after it finished doing the first command “Press any key when ready to begin copying file(s)” and I do not want that as I want this process to be atomically with no need to press any key and g one to the second command.
So it looks like I must be just missing something to make this happen.
Thank you guys for the help.
I need some help on running multiple commands in cmd using batch file in Windows 10 Home and one computer using XP home.
What I would like to do is crate a batch file that will run multiple commands as I would like to do a nightly back up from all my computers on my home network to a backup computer and USB drive using the xcopy command. So each computer will do a back up various folders to the network computer and to the local USB drive and I will be putting this batch file in the Task Scheduler
I been playing around with this and cant get it completely to work right.
@echo off
xcopy /W /E /H /R /Y “C:\Users\B\Documents\Tools” “\\WIN10SERVER\Tools” & xcopy /W /E /H /R /Y “C:\Users\B\Desktop\1A2” “\\WIN10SERVER\1A2 Key”
exit
The issue I’m having is I get this message after it finished doing the first command “Press any key when ready to begin copying file(s)” and I do not want that as I want this process to be atomically with no need to press any key and g one to the second command.
So it looks like I must be just missing something to make this happen.
Thank you guys for the help.