Ending quote mark not required

Off-topic posts of interest to the "Everything" community.
Post Reply
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Ending quote mark not required

Post by therube »

("DOS" command line) Ending quote marks may not necessarily required - in many cases.

Windows, may not require an ending quote mark, only an opening, in many cases.

So you can do something like,
DIR "c:\my documents
instead of having to do,
DIR "c:\my documents"
.

DIR "c:\my*
or
DIR "c:\my do*
, will list the directory name, "My Documents".
DIR "c:\my documents
, will list the directory contents of "My Documents".


Doesn't work everywhere, & what a particular program requires may vary.
And kind of obvious, but for this to be of benefit, the directory (or file name) [with spaces] would need to be the final command line argument.
Post Reply