K
KMyers1
The set command with the /p option will accept the contents of a
redirected file as its input, such as:
echo test1>myfile.txt
set /p myvar=<myfile.txt
However, using the set command with the /p option and piping input to
the command does *NOT* seem to work, such as:
echo test2|set /p myvar=
How can input redirection work when using a pipe fails? Piping and
indirection are supposed to be transparent and equivalent to any
program that accepts console input!!!???
Kevin M.
redirected file as its input, such as:
echo test1>myfile.txt
set /p myvar=<myfile.txt
However, using the set command with the /p option and piping input to
the command does *NOT* seem to work, such as:
echo test2|set /p myvar=
How can input redirection work when using a pipe fails? Piping and
indirection are supposed to be transparent and equivalent to any
program that accepts console input!!!???
Kevin M.