Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
xcopy with long filename
Name: Bill Lockie Date: October 18, 2003 at 15:42:15 Pacific OS: w98se CPU/Ram: 256
Comment:
I get the error msg "Invalid number of parameters" wshen I try to use the following command from a dos window.
I;m sure the problem is probaly the long file names used. I wish to copy the contents of my "documents/calendar formats". How do I do this in DOS? Bill
Name: Dave357 Date: October 19, 2003 at 20:50:03 Pacific
Reply:
Thanks for watching my back, Dan.
I warned you that my DOS was a bit rusty, & I'm on an XP machine right now, so I couldn't test it. :)
Dave
0
Response Number 4
Name: Dan Penny Date: October 20, 2003 at 02:34:00 Pacific
Reply:
No problem Dave. We Chi-Town boys have to stick together. ;>)
0
Response Number 5
Name: RussellR Date: October 20, 2003 at 18:06:39 Pacific
Reply:
i dont see why the end quote must be before the *.* .... but im also on an XP machine so i cant test it heh
you dont need the quotes around c:\amiscdata\calendar\ either, cos theres no spaces
0
Response Number 6
Name: Dan Penny Date: October 20, 2003 at 19:55:32 Pacific
Reply:
"you dont need the quotes around c:\amiscdata\calendar\ either, cos theres no spaces"
You do need the quotes because amiscdata is longer than eight characters.
0
Response Number 7
Name: Dan Penny Date: October 20, 2003 at 20:18:02 Pacific
Reply:
"i dont see why the end quote must be before the *.* .... but im also on an XP machine so i cant test it heh"
Sorry, I forgot about the first part above; The end quote "defines" the path which is out of the 8.3 ~directory structure~, while the wildcards are a separate element of the ~command~ you're trying to execute. Did I say that right? ;>)
0
Response Number 8
Name: RussellR Date: October 21, 2003 at 18:22:13 Pacific
Reply:
heh, its simpler to put the quotes around the whole thing, it will work if the quotes are before the *.* or after it ... personal preference really :)
Summary: What is the command to print long filenames to a file from inside a batch file? In Win98 I used dir>list.txt and the long filenames were included automatically. Is there a command line switch I need...