batch file xcopy help!
|
Original Message
|
Name: corey
Date: July 29, 2003 at 16:02:55 Pacific
Subject: batch file xcopy help! OS: win 2k pro CPU/Ram: pentium 2.4ghz 512ddr
|
Comment: i wrote a batch file that was working fine a few days.. then today it mysteriously quick working. i've stripped it down to the bare essentials.. but somehow its still not working right! xcopy *.* C:\2 /s this should copy every file and folder in the folder where my batch file is placed to c:\2 - but when i run it- The system cannot find the path specified. scrolls repeatedly (until i stop it) the only thing i can think of is something i installed or updated is causing this- but that does'nt make sense! like i said though- it worked out fine yesterday..
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: JackG
Date: July 29, 2003 at 16:44:27 Pacific
|
Reply: (edit)Two possible problems. The C:\2 should really be C:\2\*.* and the batch file will not necessarily be copying files "in the folder where my batch file is placed", but instead if will be copying files from the current active directory when the batch file is started or the directory that has been made active with a CD command within the batch file.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: corey711
Date: July 29, 2003 at 16:48:38 Pacific
|
Reply: (edit)i tried adding the *.*, but it still says the same thing -The system cannot find the path specified.- i'm not sure what could have changed from yesterday to cause this command to not work for me anymore..
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Fozzie
Date: August 1, 2003 at 19:19:15 Pacific
|
Reply: (edit)Make sure that the c:\2 hasn't been deleted or moved into another folder. Xcopy won't create a directory for you if it's not there. It's also a good idea to specify the directory that you are going to xcopy FROM in your xcopy statement.
example - xcopy c:\somedir\*.* c:\2 /s
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: