Command Prompt - Empty spaces not supported

September 2017





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.

Related

Published by jak58. Latest update on November 5, 2009 at 07:12 AM by jak58.
This document, titled "Command Prompt - Empty spaces not supported," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).