The dir
command checks for a dircmd
environment variable for default arugments to use. Likewise, the copy
and move
commands check copycmd
. Is there a corresponding variable (by any name) for the for
command or another way to specify default arguments for the for
command?
Whenever I use the for
command to parse a file (using the /f
switch), I always (so far) use the "delims="
argument. This is annoying to type (especially when I forget it).
Is there a way to set default arguments for the for
command? (I tested using a forcmd
variable, but it did not work. If so, does it work in DOS as well as the Windows command-prompt?
for
’s/f
switch a lot more these days to accommodate its inability to see hidden objects. I almost always have to specify thedelims=
option to allow it to work with filenames with spaces, so it is aggravating that there is no way to have it always be specified.◔_◔