Search found 7 matches
- 03 Sep 2018 14:53
- Forum: DOS Batch Forum
- Topic: find string in logs directory, send email
- Replies: 4
- Views: 4895
Re: find string in logs directory, send email
Thanks again for putting your time into this post. This is quite helpful. Once I'm back in the office this week I'll play around with this to see if I can get this going.
- 02 Sep 2018 10:21
- Forum: DOS Batch Forum
- Topic: find string in logs directory, send email
- Replies: 4
- Views: 4895
Re: find string in logs directory, send email
Thanks for posting the reply! This looks like I could work with this well. I should be able to create a log output file. I could use some help with the email function though and attach the created log in something like c:\temp\memory_log.txt .
- 30 Aug 2018 16:35
- Forum: DOS Batch Forum
- Topic: find string in logs directory, send email
- Replies: 4
- Views: 4895
find string in logs directory, send email
I would like to monitor a directory of logs for specific occurrences of memory issues. Manually I run findstr -s *Heap.memory" from the command prompt. I'm looking for some help/expertise to have a batch file I could run as a windows scheduled task daily, initiate a search of the logs and if a strin...
- 11 Oct 2011 13:22
- Forum: DOS Batch Forum
- Topic: Error logic recomendation
- Replies: 1
- Views: 2853
Error logic recomendation
I have a batch file that will shutdown an application, refresh its database and restart the application. I'm looking for some recommendations as to the best way to handle error logic on it. I was thinking about capturing all error details and send it to a error.log file, but not sure the best way to...
- 19 Sep 2011 14:33
- Forum: DOS Batch Forum
- Topic: Determine remote file -date stamp
- Replies: 3
- Views: 4468
Re: Determine remote file -date stamp
Thanks for the reply. I would want to check for the existence of the file against a remote server that it sits on. The script you wrote looks like it would check the local server that the script is running on?
Would WMIC work for remote file check, any ideas?
Would WMIC work for remote file check, any ideas?
- 18 Sep 2011 08:48
- Forum: DOS Batch Forum
- Topic: Determine remote file -date stamp
- Replies: 3
- Views: 4468
Determine remote file -date stamp
Part of a batch file I'm creating is refreshing a sql database from a script being called on a different server. I'd like to be able to check if the remote sql backup file is of the current date and not earlier. This will insure I'm restoring the most current backup. Can anyone advise a method to ch...
- 21 Apr 2010 13:29
- Forum: DOS Batch Forum
- Topic: Adding errorlevel to existing batch file
- Replies: 0
- Views: 4801
Adding errorlevel to existing batch file
I'm new to adding errorlevel logic into a batch file and looking for some help. The script I have runs a few SQL commands via OSQL and want to be notifyied if one step fails (for one reason or another) and echo out the issue into a file and email me. @echo on :Step 1 : Call Backup_Database.bat to sh...