1.

Solve : help needed with xcopy?

Answer»

I’m using xcopy to copy a directory but it asks me if I want to copy the directory or the file, I want this script to run in the background with no human interaction, is there a way to get it to select directory automatically?
Also is there a way to MAKE it so once this batch file is DONE it closes and then opens the next batch file, I have 4 batch files and they all build on ONE another so the first one needs to be finished and closed before I can run the second one and so on but once again I want it to run in the background without human interaction, any ideas?
For the first question I might try putting a back slash at the end of the directory and use the "/I" switch.

e.g. XCOPY /S /I C:\TEST\*.* D:\TEST\


For the second part PERHAPS you could put the FOUR batch files in a fifth batch file.

e.g.

CALL 1.BAT
CALL 2.BAT
CALL 3.BAT
CALL 4.BAT


Good Luck

thanks, the /s /i worked but as far at the 5th batch file for some reason that did not work, what I’m trying to do is to create a system variable LEJOS_HOME = c:\lejos and in the next step I’m added %LEJOS_HOME% to the end of the system variable PATH but it cant be added until it exists and for some reason it wont exist until the batch file that calls its batch file is closed, as in until that 5th batch file that you were talking about is closed. any other ideas?



Discussion

No Comment Found