Replace Command with Space Character in the Path Does Not Work

ID: Q156095


The information in this article applies to:


SYMPTOMS

When you use the REPLACE command with a path that contains a space character, the command will not be accepted.

For example, when you use the Replace command with a path that contains a space character such as "test 1" and "test 2", the command will not be accepted and you will receive the following error message:

Invalid switch - 2
No files replaced.


CAUSE

The utility does not parse the command line correctly; it ignores the quotes.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Windows NT Workstation and Server versions 3.5, 3.51, and 4.0. This problem was corrected in the latest Microsoft Windows NT 4.0 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K

Additional query words: prodnt


Keywords          : kbnetwork kbbug4.00 ntgeneral kbbug3.50 kbbug3.51 kbfix4.00.sp2 NTSrvWkst 
Version           : 3.5 3.51 4.0
Platform          : winnt 
Issue type        : 

Last Reviewed: January 21, 1999