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 gkittelson 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. apdesai

    VB script that parses a list of processes and checks if they're runnin

    This solved the problem. I knew it was a syntax issue. Thanks much guitarzan, and also dm4ever, and anyone else that took the time to look at this and help a noob out... Set colProcesses = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = '" & strLine & "'") If...
  2. apdesai

    VB script that parses a list of processes and checks if they're runnin

    apologies...Left out some non essential bits of the script. The line it keeps failing on is... If colProcesses.Count=0 Then
  3. apdesai

    VB script that parses a list of processes and checks if they're runnin

    So I've gotten this far, still having an issue with line 68. Any thoughts?!? (68, 5) SWbemObjectSet: Invalid query I've verified that it is parsing the lines from a file into an array, its just around the WMI query and the count statement. Any help would be greatly appreciated! Thanks! :)...
  4. apdesai

    VB script that parses a list of processes and checks if they're runnin

    I need to parse a list of processes in a text file to run the check, and spit out a non zero exit code if any of the processes listed in the text file are running. Can be a csv file too, though am assuming a .ini with a process listed on each line would be easiest. Any help is greatly...

Part and Inventory Search

Back
Top