Ending quote mark not required
Posted: Tue Feb 08, 2022 7:38 pm
("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, instead of having to do, .
or , will list the directory name, "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.
Windows, may not require an ending quote mark, only an opening, in many cases.
So you can do something like,
DIR "c:\my documents
DIR "c:\my documents"
DIR "c:\my*
DIR "c:\my do*
DIR "c:\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.