Save a log file of what a batch files has done

By TorturedChaos
Sep 22, 2009
  1. So I have a batch file setup at work to run some backups once a day off our server. But I would like it to save a log file of what it has done, preferably with a date & maybe a time in the file name. If it just wrote everything that was displayed in the cmd window to a text file I would be happy.

    Here is the batch file:
    xcopy /C /E /V /I /Z /Y /D Z:\Signs R:\Public_Backups\Signs
    xcopy /C /E /V /I /Z /Y /D Z:\Setup R:\Public_Backups\Setup
    xcopy /C /E /V /I /Z /Y /D "Z:\Sets Here" R:\Public_Backups\Sets_Here
    (I know not very fancy, but it gets the job done.)

  2. raybay

    raybay TS Evangelist Posts: 7,241   +10

    What server software are you using. Aren't their reports adequate?
  3. TorturedChaos

    TorturedChaos TechSpot Chancellor Topic Starter Posts: 839   +29

    I have no idea what the sever is running, and don't know how to log into it. Was setup by the boss's son, and it runs so I don't screw with it.
Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...