create a Log everything you did in the batch script
Moderator: DosItHelp
-
- Posts: 27
- Joined: 31 Jan 2012 14:45
create a Log everything you did in the batch script
I'm having alot of trouble in getting this to work...orgiinally i was using this on each line...>C:\logfile.txt..... but it there a better way to log everything that was done in the bat script?
Re: create a Log everything you did in the batch script
This works if the batch doesn't need to get input or display anything.
Code: Select all
batchscript.bat >file.log
-
- Posts: 27
- Joined: 31 Jan 2012 14:45
Re: create a Log everything you did in the batch script
Thanks works great . also is there another way to capture inputs as well?
Re: create a Log everything you did in the batch script
daillest319 wrote:Thanks works great . also is there another way to capture inputs as well?
If you are redirecting the batch output to a log file then echo your input variables in your batch file.
set /p myvar=Enter Something:
echo %myvar%