h711 Posted September 9, 2008 Posted September 9, 2008 I need to launch my script from target program location. So I do the following: FileChangeDir("E:\") Run("Install.exe") This code works fine if you run it from .au3 file, but once you compiled it to exe and click on it, it will repeatedly launch itself endless times. Run("E:\Install.exe")works fine for both .au3 and .exe. So I assume FileChangeDir("E:\") is the part that caused the trouble. Any ideas? Thanks!
h711 Posted September 9, 2008 Author Posted September 9, 2008 Ok, I found a way out. FileChangeDir("E:") Run("\Install.exe") This seems to work for both .au3 and .exe. I guess it is the "\" been handled differently for .au3 and .exe.
LimeSeed Posted September 9, 2008 Posted September 9, 2008 (edited) I need to launch my script from target program location. So I do the following: FileChangeDir("E:\") Run("Install.exe") This code works fine if you run it from .au3 file, but once you compiled it to exe and click on it, it will repeatedly launch itself endless times. Run("E:\Install.exe")works fine for both .au3 and .exe. So I assume FileChangeDir("E:\") is the part that caused the trouble. Any ideas? Thanks!maybe theres a file in E that is called install.exe and that runs install.exe and it goes on in a loop?? OR MAYBE ITS BECAUSE FILECHANGEDIR DOES NOT MAKE THE SCRIPT LOOK FOR INSTALL.EXE IN DRIVE E:\ YOU NEED TO MAKE IT RUN("E:\INSTALL.EXE") AND THAT SHOULD WORK! Edited September 9, 2008 by LimeSeed global $warming = true
trancexx Posted September 9, 2008 Posted September 9, 2008 (edited) Ok, I found a way out. FileChangeDir("E:") Run("\Install.exe") This seems to work for both .au3 and .exe. I guess it is the "\" been handled differently for .au3 and .exe.No, that's not it. You compiled your script to Install.exe and that caused it to run it self endlessly Edited September 9, 2008 by trancexx ♡♡♡ . eMyvnE
h711 Posted September 9, 2008 Author Posted September 9, 2008 Oh, i c. Yea, that make sense. Thanks!!
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