Command Prompt space problem?

  • Thread starter Thread starter Des
  • Start date Start date
D

Des

Hullo, I'm on Windows XP and I tried copying a file from
one directory to another but I keep getting the "The
syntax of the command is incorrect" message. I typed
something like this:

copy C:\mp3s\al green - let's stay together.mp3 D:\new
folder

I reckon it has something to do with the spaces, but I'm
merely an amateur and I know nuts about command prompt!
Any help/explanation is greatly appreciated!
 
In
Des said:
Hullo, I'm on Windows XP and I tried copying a file from
one directory to another but I keep getting the "The
syntax of the command is incorrect" message. I typed
something like this:

copy C:\mp3s\al green - let's stay together.mp3 D:\new
folder

I reckon it has something to do with the spaces, but I'm
merely an amateur and I know nuts about command prompt!
Any help/explanation is greatly appreciated!



Yes, it's the spaces. Windows think you're trying to copy from
C:\mp3s\al to green

and has no idea what the rest of the command is.

When you have spaces you need to enclose the name in quotation
marks. Enter the command like this:

copy "C:\mp3s\al green - let's stay together.mp3" "D:\new folder"
 
Back
Top