RCMD Strips Quotes from the Command Line

Last reviewed: February 13, 1998
Article ID: Q161890
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0 --------------------------------------------------------------------------

SYMPTOMS

When you use Rcmd.exe from the Windows NT Server 4.0 Resource Kit and Windows NT Workstation 4.0 Resource Kit to create a remote command that requires quotation marks around its parameter(s), you receive an error.

See the following example:

   C:\> rcmd \\myserver net start "computer browser"
        Executing on \\myserver: net start computer browser

        The service name is invalid.

        More help is available by typing NET HELPMSG 2185.

        Remote server \\myserver disconnected

CAUSE

RCMD strips the quotation marks from the command line (note this behavior on the second line of the previous example) that results in a single multi- word parameter being interpreted as two parameters.

RESOLUTION

This problem was corrected in the Supplement One.


Additional query words: quotes ignore ignoring
Keywords : kbbug4.00 ntreskit NTSrvWkst kbtool kbui kbbuglist
Version : WinNT:4.0
Platform : winnt
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.