make a log of a DOS batch file


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by Marco on June 03, 2010 at 11:03:04:

Hi all,
I want make a log of a batch file. The problem is want to retrieve also the error responce, and the command test.bat > log.txt doesn't work.

e.g.:
My batch is: "del file.txt"

let say that file.txt doesn't exist, so if I try to delete it I get: "Could Not Find C:\UserData\file.txt"

If I run test.bat > log.txt the message "Could Not Find C:\UserData\file.txt" isn't recorded.
How I can get this?

Thanks,
Marco




Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]