mayton82
03-04-2004, 11:14 AM
I recently started a virus scanning and backup system at my office and I came back to winguides for help. Everything needs to run in the background with a message box saying your computer is now being scanned and backedup to the server. I've got most of the sccript finished but I need some help. The virus scanner I'm using makes a log file of its own and I would like to have the log file parsed through looking for a string of text, and when found append the whole line into another log file. I would also like to have the date in the log file. I have forgotten most of my programming skills unfortunantly and I'm hoping someone out here can help me with the more advanced stuff. I also need the script to be able to check the system processes to see if there is a process running and if so sleep for x amount of time say 5 minutes. I know how to tell the script to sleep but I've forgotten how to check the current processes as many of you can tell this script has gotten very complicated very fast. If anyone can offer me help I would gladly apreciate it. The script is being called as a shutdown script so it either needs to run directly from the registry, or needs to run from a batch file and call focus back to the batch file after the script is finished running to continue shutting down the computer. I currently have the batch file shutting down and backing up computers, I just need to add in the virus scanner deal but I would perfer to have everything work via scripts. Thanks, Mayton82