Sign in to follow this  
Followers 0
usera

one EXE file

14 posts in this topic

Greeting,

Look for a way:

I need to create a small utility to copy 2 small text files: program.ini and hosts

  

   some code like:

    

                  filecopy ("hosts", "C:\Windows\System32\driversetchosts")

I want to compile these 2 files in the only one EXE file, how can I do that?

thanks

usera

 

Share this post


Link to post
Share on other sites



Check out FileInstall()

What exactly is it you are doing with the hosts file?

Share this post


Link to post
Share on other sites

Check out FileInstall()

What exactly is it you are doing with the hosts file?

 

where is FileInstall(), help can not find it

easy DNS fix

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Take a look at the helpfile for the FileInstall function. You have almost 200 posts and you don't know what is a function?

Edit: aaaaah too late :)

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

forgive me dumbness, but what's wrong with 2-lines batch file?

edit: or even a single line, if you put your 2 source files - and only your 2 source files - in a dedicated folder.

Edited by orbs

Share this post


Link to post
Share on other sites

forgive me dumbness, but what's wrong with 2-lines batch file?

He is wanting to include the files in the executable.  Batch would be fine if he wanted to have 3 files (the batch file, and the two that are being copied).

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

More than copying the two files, he wants to compile them in one exe - not possible with a batch script.

Well it's time to go to bed, 2nd time I'm too late.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

oh, then FileInstall() it is then.

i'm just saying, cause i tackled that issue in the past, the solution was a batch file called by PsExec on multiple target machines, where the files being copied were placed on a network share.

Share this post


Link to post
Share on other sites

More than copying the two files, he wants to compile them in one exe - not possible with a batch script.

Well it's time to go to bed, 2nd time I'm too late.

:gathering:  It's about time for me to start thinking about dinner anyway hehe

Too many answers is better than too few :huggles:

Share this post


Link to post
Share on other sites

@orbs

And do you think it was not useful to mention it in your first post ?

@danwilli

Can you bring me some food? :)


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
@danwilli

Can you bring me some food? :)

It's in the mail... I wouldn't eat it.

Share this post


Link to post
Share on other sites

It's in the mail... I wouldn't eat it.

Something non-perishable in this case :D


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

@orbs

And do you think it was not useful to mention it in your first post ?

 

well. it's kind of hard to list all possible ways to put files in folders... and batch is still one of the most powerful (and most underestimated) methods i know of. admin may want to include a batch command in login script, in the "Startup" folder, in the registry "Run", ... or with PsExec. let the guy choose, i was just pointing it out.

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