How can I start a program via batch and change its name in the Task Manager. For example,
start "program" /HIGH "%~dp0\program.bin"
In the Task Manager it shows program.bin, but can I change it to something else, for example, hideMe.bin?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityThe process name in Task Manager is the name of the executable file ("image name"). So, to change that you will need to rename the file.
copy blah.exe blah2.exe
then del blah.exe
Then make your own blah.exe
that calls blah2.exe
And if you say oh but that will make blah.exe and blah2.exe in task manager, well if you don't want that you can have your blah.exe start blah2.exe in such a way that it starts it as its own independent thread.. And so blah.exe can terminate as soon as it spawns blah2.exe
It sounds like you have a hard-coded path to some executable "program.bin" and you want it to be launched as expected, but appear in Task Manager as "hideme.bin". Is that correct? If so, here's the easiest way to do that (assuming you're using Windows Vista or later):
cmd
, run the following command (replacing file names and adding paths as appropriate) to create a symbolic link from the old name to the new one: mklink program.bin hideme.bin
(may require administrator privileges).This probably also works using a hard link (add a /H
to the command before the file names, as in mklink /H ...
as I believe Windows considers the oldest name linking to the file to be the canonical name. Hard links are available even on very old versions (Windows 2000, maybe earlier) via the fsutil
command. Both symbolic and hard links require the NTFS file system.