dos command

  • Thread starter Thread starter Shirl
  • Start date Start date
S

Shirl

why doe this command not work with xp?
copy c:\any artist - any song.mp3 e:\track 100.mp3
the filenames match names shown in win explorer.
i may have to revert to win98.

TIA shirl
 
Dos cannot cope with spaces in pathnames or filenames, try enclosing them in
quotes
ie - copy "c:\any artist - any song.mp3" "e:\track 100.mp3"

Good luck
Martin
 
Paths containing long filenames with spaces must be enclosed in
quotation marks.

See how the command behaves without and with encapsulation:

C:\>copy welding tickets mail.doc c:\test.txt
The system cannot find the file specified.

C:\>copy "welding tickets mail.doc" c:\test.txt
1 file(s) copied.

C:\>copy "welding tickets mail.doc" c:\test 22.txt
The syntax of the command is incorrect.

C:\>copy "welding tickets mail.doc" "c:\test 22.txt"
1 file(s) copied.

John
 
CAREFULL! WINDOWS 98 IS NOWSEVERELY OUTDATED! GRANTED IT IS THE BEST OS MS
EVER MADE, BUT IT IS OBSOLETE!
 
Thanks everyone, I suspected it had to do with the long filename but did not
know what to do about it. The quotation marks did the trick.......Shirl
 
Back
Top