I'm using XCOPY for a selective restore CD, and for most directories it works fine, but I have identified a couple cases where it fails due to the directory name.
Where D: is the CD: Case 1: ------- XCOPY /E /V /Y /I D:\GAMES\F-PROT C:\GAMES\F-PROT First of all, XCOPY asks "Does F-PROT specify a file name or directory name on the target?" With the /I switch, it is not supposed to ask me that question, and it does not ask for copies of other directories. Worse, though it does create C:\GAMES\F-PROT, it does not copy any of the contents of the F-PROT directory. Instead, it begins copying into F-PROT other GAMES sub-directories: GAMES\ABUSE gets copied to GAMES\F-PROT\ABUSE, GAMES\DOOM to GAMES\F-PROT\DOOM, etc. Case 2: ------- XCOPY D:\GAMES\F-PROT C:\GAMES\F-PROT Again it asks File or Directory, and that is OK without the /I switch here. But after I answer Directory, XCOPY copy responds with: File not found - F-PROT 0 file(s) copied Case 3: ------- XCOPY D:\GAMES\QUEEN.SAV C:\GAMES\QUEEN.SAV The response is similar to Case 1, except that XCOPY does not ask File or Directory. Instead, it copies none of the F-PROT contents but immediately begins copying other GAMES sub-directories into GAMES\F-PROT (as in Case 1). Case 4: ------- XCOPY D:\GAMES\QUEEN.SAV C:\GAMES\QUEEN.SAV The response is exactly the same as for Case 2. --John Hupp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user