Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to run multiple scripts simultaneously, but monitoring them or detecting which has died is difficult as they are all listed as wscript.exe in the process list.

How can I change the name of the running process?

share|improve this question

2 Answers 2

Only way I can think of is to make a copy of wscript.exe for each script you need to have a unique name in process explorer then explicitly call that copy.

For example say you have renamer.vbs create a copy of wscript.exe and call it renamer.exe

Now run your script like:

...\renamer.exe renamer.vbs

You process should show up as renamer.exe

share|improve this answer
    
Cheers, I didn't see this answered on SU and was intending adding the solution as per blog.stackoverflow.com/2011/07/…. You beat me to it :) –  Lunatik Aug 12 '11 at 8:33

As long as the script is running locally then you can copy wscript.exe, renaming it to whatever you like then call this from a shortcut.

For example, if you wanted to show the process as WorldsBestScript.exe then you would call it like this

WorldsBestScript.exe TheActualScript.vbs

Properties screenshot

The above assumes you've copied wscript.exe to the same folder as the VBS file, if it is anywhere else then you'd obviously have to include the full path to WorldsBestScript.exe

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.