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:
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.
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
Post a Comment