Jump to content
Sign in to follow this  

runwait function

Recommended Posts


i have create 2 autoit script

in the first i have the line:



i run the first script

then the pc reboot and it runs automatically the second script (clone.exe)

the second script (clone.exe) contains:

$FICHMODELE = FileOpen("C:\temp\clone\ipstation.txt",0)


the ipmodif.bat file:

for /F "eol=, tokens=1,2,3 delims=;" %%i in (ipstation.txt) do netsh interface ip set address "lan" static %%i %%j %%k 1

when i run manually clone.exe, it work's

if i run the first script, the second script runs automatically but it doesn't work

i think that the problem becomes with the registry key in the first script

any suggestions


Share this post

Link to post
Share on other sites


i have find the solution

i don't use the regedit's entry

i just put this line in my first script:

FileCopy("C:\temp\clone\clone.lnk", "C:\Documents and Settings\Install\Menu Démarrer\Programmes\Démarrage", 1)

it works very well :whistle:


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.