Sign in to follow this  
Followers 0
badzox

Start an embedded Exe file with Parameters

6 posts in this topic

#1 ·  Posted (edited)

Hi,

with the Resources.au3 UDF File it is possible to use embedded files without extracting them to an temporary folder.

How can i start an embedded Exe file with parameters ?

I tried

#AutoIt3Wrapper_Res_File_Add=test.exe, Test,0

run (Test & " parameters")

What is wrong ??

Sorry, by posting this messages the server showed an internal error. now this posting existis 3 times

Edited by badzox

Share this post


Link to post
Share on other sites



Hi,

exe is not supported I guess.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

exe is not supported I guess.

Mega

I wondering why this is not possible.

Mean this, i have to use fileinstall to extract the exe file to an temporay folder ?

Share this post


Link to post
Share on other sites

Yes, but u can then hard code a file delete after you are done with the exe or program.

Share this post


Link to post
Share on other sites

How can i start an embedded Exe file with parameters ?

you cannot do this. the only way to do is fileinstall, or write an embedded HEX string, then write binary to a file

there is a reason why exe files cannot be embedded and started Internally!!. use internal functions or dll calls if you want to use something internal

Share this post


Link to post
Share on other sites

I can confirm that it's not possible to start new EXE process directly from memory. It's Windows limitation.

You can use FileInstall() or _ResourceSaveToFile() from my resources UDF which has the same effect - creates file on disk.

Then use Run() with disk saved EXE file and finally delete EXE file (after process finishes).

Share this post


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
Sign in to follow this  
Followers 0