Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
create a log for a batch file
Name: propache Date: March 27, 2009 at 12:07:32 Pacific OS: Windows XP Subcategory: Batch
Comment:
i created a batch file. it goes to different locations on computers, checking file existence and then does some operations like, decrypting, unzipping, splitting etc. What i actually need is to create a log of all the operations the batch does. it will be scheduled to run at 30 min from 9am to 9pm, and i need a log to be created on each run.
Name: IVO Date: March 27, 2009 at 14:14:37 Pacific
Reply:
There is no way to trap a log out of the blue running a batch script. You need patiently to walk through your code and add echo commands or redirect the output of tools involved into a log file planned for that purpose.
0
Response Number 2
Name: Razor2.3 Date: March 27, 2009 at 16:26:48 Pacific
Reply:
Step 1: Remove @ECHO OFF Step 2: Run your script like this: YourScript >> YourLog 2>&1
Summary: I have been working with this assignment for afew hours and I am having trouble getting it to work right..... I am fairly new at cmd. Help would get greatly appreciated! Might be able to paypal some...
Summary: I am trying to create a batch file to change the Physical directory to the new build after a successful build. so far i got this: @echo off rem Check status of file rem If status = Success then do cha...
Summary: Hey all. I'm trying to write a batch file, but I'm in the process of self-teaching the commands, so I'm wondering if someone can tell me whether or not what I want to do is possible before I give myse...