zoub99 Posted March 1, 2007 Share Posted March 1, 2007 i have create 2 autoit script in the first i have the line: RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","clone","REG_SZ","C:\temp\clone\clone.exe") shutdown(6) 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) RunWait("C:\temp\clone\ipmodif.bat") 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 thanks Link to comment Share on other sites More sharing options...
zoub99 Posted March 2, 2007 Author Share Posted March 2, 2007 hi 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 zoub Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now