• 0

Simple batch script output


Question

I have a nice and simple batch script on Saturday that opens an ftp address, downloads a zip file from a customer (obviously this has to do with my work), unzips everything, renames them all to add the .pdf extension, then uploads them to another folder. The past couple weeks however when I check the folder the files are to be uploaded to, only about half of them are there, and I'm not sure where the error is occuring.

This is a scheduled task, and has more than enough time to run before it's terminated (1 hour for about an 8mb file on broadband). My question is, how can I log the output of everything it is doing into a text file?

Thanks for any input.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Assuming the output is not being displayed on the screen, add "(" to the beginning of the file, and ") > log.txt" to the end.

(

@echo off

commands...

) > log.txt

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.