Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSDOS - "The system could not find the file specified"

Tags:

dos

I am trying to copy the contents of a log file to another log file using this command:

type \\server\f$\Test path\Test.log >> \\server2\f$\Logs\Testpath\Test.log

This has always worked in the path, but recently I have changed the location (path) to Test.log. The path is slightly longer. I now get an error:

The system could not find the file specified

I have googled this statement and the common responses are: 1) check the filename exists, 2) check the filename is not corrupt 3) Check the server is online.

I have done all of this. Is there a restriction on the number of characters a path can have? If there is then is there a workaround?

UPDATE 12/07/2012 09:49 GMT Adding quotes around the path seems to resolve the problem. Why does adding quotes resolve the problem?

like image 575
w0051977 Avatar asked Jan 26 '26 14:01

w0051977


1 Answers

The problem was that the source path had a space in it. Adding quotes around the path resolved the problem.

like image 129
w0051977 Avatar answered Jan 29 '26 11:01

w0051977