Command Prompt - Empty spaces not supported

Ask a question




Issue


You want to make a command that targets a specified path, but it includes a space on a file.



Example:

You want to make a copy from one directory to another:
copy c:\File to be copied\ e:\backup folder\



You get the following message: The specified file is not found.

Solution


It's very simple, just put quotation marks around the folder with space or more, like this:
copy c:\"File to be copied"\ e:\"backup folder"\



Note: The easiest way to avoid this kind of message is to use the underscore "_" instead of space when naming your files and folders.

Windows XP - Add the Arabic keyboard layout
View all devices of the computer