Jump to content

rename "autoit3.exe" in taskmanager?


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 post
Share on other sites

You can copy/rename Autoit3.exe to the name of your choice and run the new.exe with your script name as parameter ...

Link to post
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 post
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 post
Share on other sites

So there is a way to peek at which script it is running. I never thought that is a "view Command Line" with taskmanager.

BTW: How come there is a "!" on one of the script, while the other does not? What does it denote?

image.png.c5d3ff0fc2af4264f8cc885baef95258.png

TIA!

Link to post
Share on other sites
9 hours ago, Exit said:

... or convert your 'Computer Monitor.au3' to 'Computer Monitor.cmd' using Au3toCmd

I was having this problem yesterday indeed. Windows antivirus simply would not allow saving a compiled au3 exe, not even a blank au3 script, it was frustrating.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...