Jump to content

Launch AutoIT.exe with Custom Name


Recommended Posts

I have an AutoIT .exe that runs through a list of computers and then uses each computer name as an argument to pass to a secondary AutoIT .exe.

My question is, is there a way to that I launch each secondary .exe with a custom name so that when I go to the task manager I'll see this:

PCInventory_ComputerName1.exe

PCInventory_ComputerName2.exe

PCInventory_ComputerName3.exe

rather than this:

PCInventory.exe

PCInventory.exe

PCInventory.exe

Link to comment
Share on other sites

One way to do it is, in your parent app, copy+rename the child app into a custom name including the computername. Then to avoid storing too many of these identical .exe with different names, your parent program could delete them after completion.

Another way to clean up would be to have them autodelete themselves. This can be done at some cost, as a forum search will reveal.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

The latest versions of Task Manager can show you the command line parameters in a custom column that you can add through the right click of the column headers. Thus if you have this ability already then you will see within the added column something like /computername if it was passed as a parameter.

Link to comment
Share on other sites

The latest versions of Task Manager can show you the command line parameters in a custom column that you can add through the right click of the column headers. Thus if you have this ability already then you will see within the added column something like /computername if it was passed as a parameter.

The starting command line is one of the parameters returned by _ProcessListProperties(). But since you are starting the processes yourself, I don't see any reason not to keep track of PID/ComputerName relationships as you create them.

:mellow:

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...