How do I Send a batch command's output t - TechRepublic
General discussion
December 8, 1999 at 06:54 AM
garyg

How do I Send a batch command’s output t

by garyg . Updated 25 years, 9 months ago

I’m writing a batch script which executes several different command some of which are net use * \\unc\share. I’m looking to get the string outputs of these commands and store them into an environment variable for further evaluation of the output. Only all the standard ways like piping and redirecting don’t work generating various error messages.

If any one knows how to do this seamingly simple task, I would be very appreciative of their reply.

Thanks
Gary

This discussion is locked

All Comments