Jump to content

rename "autoit3.exe" in taskmanager?


Burgaud
 Share

Recommended Posts

I have a script like this:

 

GLOBAL $repository = "\\QNAP\MAIN\QuickLaunch\Autoit Scripts\Computer Monitor.au3"
.
.
.
            local $autoit = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")
            if @error <> 0 then
                $autoit = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AutoIt v3\AutoIt", "InstallDir")
                if @error <> 0 then
                    $autoit = ''
                    _LogMessage("Could not find Autoit installation.")
                endif
            endif
            if $autoit <> '' then
                $autoit &= "\AutoIt3.exe"
                $PID = ShellExecute($autoit, '"' & $repository & '" ', "", "")
                _LogMessage("Repository script executed with PID:" & $PID & " and @error:" & @error)
            endif

It basically executes another autoit script "Computer Monitor.au3" and remembers the $PID of said process.

My problem is that said "Computer Monitor.au3" script will appear in Task Manager as "Autoit3.exe".

After executing more au3 scripts, I could not distinguish which is which...

Is there a way to rename it such that Task Manager will display it something else? 

I tried compiling said script into an executable .exe file to a name of my choosing, however, since this is a network file, some computers refuses to execute it (antivirus, or net file permission etc....) for a variety of reasons, thus is more a headache...

 

TIA!

PS... I am reading this old thread and see if this would offer some help:

the mentioned thread is not it. It basically simply changes the exe file name of a compiled script.
What I need/want is renaming "autoit3.exe" because the file to execute is an "au3" script.

Edited by Burgaud
Link to comment
Share on other sites

  • Developers

You can see quite well which process is which when you load the Microsoft ProcessExplorer. This is an example of running a script from SciTE:

image.thumb.png.6e767700b544b36afad3a042e17fefec.png

As you can see, Autoit3Wrapper is running, a "/Watcher" to monitor the shelled process and the actual script test.au3.

Jos 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

1 hour ago, Jos said:

You can see quite well which process is which when you load the Microsoft ProcessExplorer. This is an example of running a script from SciTE:

Or with the standard taskmanager: on the details page, right click the column headings, "select columns", and tick "Command Line".

493584433_GIF15_02.202116-03-34.gif.36c8c038f74267b2bee685e53710d3f3.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...