batch file - Windows CMD - Run program and specify image name -


i run program commandline (or batch file) specify imagename shows in task manager. possible using windows cmd?

this needs done in batch script or command-line argument, not renaming exe itself.

from command prompt can use c:\> title mycustomtitle , show in taskmanager (windows 8) this:

screenshot of task manager custom title in cmd.exe

so tell them apart way. don't know of way change icon, , setting shortcut custom icon doesn't work.

edit

suggestion 2: copy c:\windows\system32\cmd.exe , rename it, run that.

screenshot of task manager renamed cmd.exe

edit 2

since this microsoft kb article on createprocess makes me think it's not possible want, how wmi query shows running processes , process id, , can run after every launch , see new process id is?

e.g. batch file

wmic process (name="notepad.exe") processid rem keep track of seen processes 

powershell

$knownprocessids= @() $processids = get-wmiobject win32_process -filter 'name="notepad.exe"' | select -expandproperty processid $newprocessid = $processids | ? {$knownprocessids -notcontains $_} $knownprocessids += $newprocessid write-output "new notepad instance $newprocessid" 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -