Thank you Geates, the script now works like a charm. However, is there any way to identify which server the text is from. I tested with text files on 3 servers, 2 text files listed "process failed" and the other "successfully completed". Once the script was ran I did recieve an email with the 2...
Made those changes but now I do no recieve an email nor an error message. Any idea what else I can try ?
Code:
Const ForReading = 1
Const TriStateUseDefault = -2
arrKeyWords = Array("Failed")
arrServers = array("Server1", "server2", "Server3")
strEmailFrom = "BackupAlert@mydomain.com"...
Thanks for your prompt response. I get an error:
line:29
Char:5
Error:Object doesn't support this property or method:
'objStream.AtEndOfFile'
Code:800A01B6
Source: Microsoft VBScript runtime error
Const ForReading = 1
Const TriStateUseDefault = -2
arrKeyWords = Array("Failed")
arrServers =...
I need some help parsing text files located in multiple locations. Example:
\\server1\backup\mon\log.txt
\\server2\backup\mon\log.txt
\\server3\backup\mon\log.txt
My goal is to setup a task that runs nightly to parse all log files in the Mon folder on each server and return any failed session...
Geates, my goal is to ensure that the shared drives mapped at one site do not follow the machine to anoher. Laptop users will need to be mapped to their home folder (Z:Drive) regardless of the site they are visiting. If there is another way I can achive this goal, please let me know. I would...
Thank you guys for all your help, it is much appriciated. I made the above changes and the code finally ran with no errors. I have done some modifications to to the script to also map a few shared folders. Can you help me with a code that I can place at the begining of the script that will...
I thought that was it, I saw a cmd screen for a sec but still got the following error message:
Line 20
Char: 1
Error: Subscript out of range: '[number: 2]'
Code: 800A00009
What should I do next ?
Code:
__________________________________________________________________
'execute an ipconfig to...
I tried again and recieved the following error:
Line 8
Char: 1
Error: object doesn't support ths property or method:'objExec.AtEndOfStream'
Code: 800A01B6
Please help !
Code:
__________________________________________________________________
'execute an ipconfig to the local machine and store...
Sorry it took this long to get back. Geates, I ran the code below and recieved this error message:
Line 4
Char: 1
Error: object required: objshell
Code: 800A01A8
Can you tell me what I need to do to resolve this.
Code:
__________________________________________________________________...
I am looking for a VB Script that would map network printers to my laptop users IP addresses. Printers are located in 5 sites, each on a different subnet. Laptop user travel to each location a few times per week. I would like to use the Third octet in the IP address to determine which set of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.