Microsoft KB Archive/70752

FIND Command Returns “Invalid Switch”/“Invalid Keyword” Error PSS ID Number: Q70752 Article last modified on 07-14-1993 PSS database name: O_MSDOS

4.00 4.01 4.01a

MS-DOS

Summary:

FIND returns an error when the string equals “=” or “/”.

The following are examples:

Find “/” results in “Invalid Switch”. Find “=” or Find “anystring=” results in “Invalid Keyword”.

The string can contain an equal sign (=) at any position within the string if there is a space immediately preceding the equal sign. For example:

Find &quot; =&quot; or Find “anystring =” will execute successfully.

This workaround is not true of the “/” character.

Microsoft has confirmed this to be a problem in MS-DOS versions 4.x. This problem does not occur in later versions of MS-DOS.

Additional reference words: 4.00 4.01 4.01a noupd

Copyright Microsoft Corporation 1993.