Re: Redirecting command output to environment variable and tracking errorlevel



On Tue, 27 Feb 2007 22:40:45 -0700, "Al Dunbar [MS-MVP]"
<alan-no-drub-spam@xxxxxxxxxxx> wrote:

I there a way doing it without using temporary files. The output of
mycmd is sensitive and I would like it to be stored on files?
It looks like a simple requirement to catch an output and return code
from a cmd but appearently it doesnt... only one line in perl...

Jerold's (multi-line) solution seems to avoid explicit use of files. But
beware! You can never really be sure that transitory information is not
indirectly stored in a file somewhere.

From reading peoples comments, Al, I believe that pipes and commands in
for-in-do commands are stored in the registry while executing. Dunno if
that's in a RAM copy or on the HDD.

Of course it always been that dos/Win9x/ME store pipes etc in temporary
files in the %temp% location, if set.

.


Loading