1.

Solve : Error Log?

Answer»

Hi Everybody,

I am new to the forum and to DOS Command world. I have to run a batch file that will create around 60 folders and then sub folders into them. The issue is that I want an activity or error log that will give me an output after running the batch file as how many folders were created and mark the errors in creating folders or missouts. This is an auditing output I require to track my output as sometimes there are errors and a couple of folders dont get created.

Kindly help me ...........try this code it will print the output of ur PAT file into an TXT file
from the CMD prompt

batfile.bat >> log.txt

put if there was (echo off) command the log.txt will only contain the errors and the echo's ur bat file have
unless u provide u code so we can add SOMTHING to make ur bat file count the objects it CREATES



Discussion

No Comment Found