cmd - How to log input and output of a batch file to a text file? -
i have created batch file 2000 lines of code , peroform various operations in daily work. batch file have give inputs enable/disable of operations. batch file ready , working fine.
but want have log file in coming on command window should logged, including inputs have given batch file , execution process.
is there way this? 1 of can me?
thanks in advance... nagaraju
you not telling how invoking batch file. try adding redirection command line (batchfile.bat > filename.log
), although won't catch whatever type in input. could, however, change script print out input parameters caught in log file.
Comments
Post a Comment