Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mbp007

    Code Issues

    That worked!! Thanks Minesh
  2. mbp007

    Code Issues

    Hello, I have below code. I can't figure out to get the filename the way i want. Here is the current filename it creates when the code runs: DXD EC - Non Updated PCs_11192012_8 0.log I would like to get the filename as this when the code runs: DXD EC - Non Updated PCs_11192012_0800.log (Two...
  3. mbp007

    Writing to text file with append mode

    I tried the last code which you posted but I get error "The service has not been started". Line: 28, Char: 3. Here is the code below. I removed other stuff so I can just try the stop service first before I put it in the main vbscript file. 'open file called output.txt in append mode (8)...
  4. mbp007

    Writing to text file with append mode

    Thanks all of you for helping me get this working. All is working fine. strongm: Regarding your note above "BTW, a Win32_Process has a .STATE property which means you can avoid repeatedly and inefficiently polling all the services to see check whether a specific service has stopped", can you...
  5. mbp007

    Writing to text file with append mode

    Here is what I have so far. It is some odd reason not working after the first steps (runsupporttool). If i disabled that, the stop services works fine. But then the start services does not start both services. strongm (How to do the stop services as you say using the .STATE so it can be done...
  6. mbp007

    Writing to text file with append mode

    Sorry for not entering in correct format. I just created brand new vbscript file just to test the stop services function before i can start merging in one big file. I get error: Wrong number of arguments or invalid property assignment: 'stopService'. Line 15 Char 6 'open file called output.txt...
  7. mbp007

    Writing to text file with append mode

    I found the two replacement for colProcesses but the problem is when i run, it only stops one service. I want the service to stop all dependency along with it. I have tried below code but i guess i am doing wrong. Please help. 'open file called output.txt in append mode (8) Const EVENT_WARNING...
  8. mbp007

    Writing to text file with append mode

    It gives me error on colProcesses. Object required error.
  9. mbp007

    Writing to text file with append mode

    btw.. i used your new stop code and working great and also the write code and working.. just need help regarding my last posting.
  10. mbp007

    Writing to text file with append mode

    The problem with that is it can be 100 millisecs or it can be 10000 or 100000 millisecs. I don't want to guess and be wrong. Is there a way to verify the stop service is complete before starting those service again and then verifying the service is started before it can write log. Also, I need...
  11. mbp007

    Writing to text file with append mode

    Thanks again. I got that fixed. I need help with two more things. I would like to run only one thing at a time when the previous thing is over.. Example: when it completes below SEP_SupportTool.exe, then the service is stop, then it needs to start the service, then it needs to write the log...
  12. mbp007

    Writing to text file with append mode

    Thanks for helping. I got the write file working. The services is giving error: Object not a collection, Code: 800A01C3 on Line 3, Char 1. Please let me know what am I doing wrong below. This is what I have in just new vbscript file with stop service. Eventually once I have it working, I would...
  13. mbp007

    Writing to text file with append mode

    Hello, I am not that savvy in vb script but I have below script. What I want is it writes the log info in the txt file with append mode. I would like to have Date, Time and How much numbers was it if it restarted the service. If it did not restart the service, it does not need to write in the...

Part and Inventory Search

Back
Top