New
#1
Help with a batch file
I created a simple batch file to run XCOPY and copy all files and folders from a users directory to an external hard drive. The batch file works, but sometimes it will ask to copy all files Yes/No/All. The user has to select "a" in order for the batch file to continue.
I want to set a task scheduler to execute the batch file, but if this prompt comes up and the user isn't in front of the computer when it executes, the batch file closes out after a certain amount of time and never copies the files and folders.
My question, is there a switch to add to the batch file to choose All if asked? If so, what do i need to add to the batch file?
This is the line i have in the batch file, XCOPY C:\Users\Username\* F:\backup /s /i