Page 1 of 1

Ending quote mark not required

Posted: Tue Feb 08, 2022 7:38 pm
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.