Computer Hope

Software => Computer software => Topic started by: dhoover on November 18, 2008, 01:18:09 PM

Title: Batch Files
Post by: dhoover on November 18, 2008, 01:18:09 PM
Hi all I am new to this forum, I need to know if there is some way to save the output of a process started with a Batch File to a file on a network share?
Thanks
Dhoover
Title: Re: Batch Files
Post by: Geek-9pm on November 18, 2008, 01:27:03 PM
In a batch file or at the command prompt you can
direct the output to a file. Like this:
DIR /B > LIST.TXT
Will give you a brief directory sent the the new Text file
named LIST.TXT which you can open with NotePad.
If you want to add to the file, you use >> to append
to a file if it already exists.
Works in bartch files for any command that normally sends
output to the DOS box.  8)
Title: Re: Batch Files
Post by: dhoover on November 18, 2008, 02:16:47 PM
Thank you I got it to create the files on the network share. The DIR liste the directory it is in but, it doesn't list the output of the EXE.
Thanks