I am using XCOPY in a batch file (running out of the scheduler) to copy a folder. When it starts I am prompted to enter "F" for file or "D" for directory.
How can I suppress this....because I want this routine to run at night. Thanks
Did you try looking in the help for the xcopy command?
xcopy /?
Anyway:
Try the /I switch. Assuming the answer is always a directory.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Well that's a different thing to what you had asked before.
The /Y switch should help you with that one.
again xcopy /? would have listed all the switches available for he xcopy command.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.