Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch Files  (Read 2010 times)

0 Members and 1 Guest are viewing this topic.

dhoover

    Topic Starter


    Newbie

    Batch Files
    « 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

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Batch Files
    « Reply #1 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)

    dhoover

      Topic Starter


      Newbie

      Re: Batch Files
      « Reply #2 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