Guest hakcenter Posted April 19, 2004 Share Posted April 19, 2004 I can't seem to get the run function to work properly with any variables that i set for them. ex: $TESTPATH = IniRead("config.ini", "Delays", "TESTPATH", "NotFound") $TESTEXE = IniRead("config.ini", "Delays", "TESTEXE", "NotFound") run("$TESTEXE", "$TESTPATH") help? Link to comment Share on other sites More sharing options...
ezzetabi Posted April 19, 2004 Share Posted April 19, 2004 (edited) $TESTPATH = IniRead("config.ini", "Delays", "TESTPATH", "NotFound") $TESTEXE = IniRead("config.ini", "Delays", "TESTEXE", "NotFound") run($TESTEXE, $TESTPATH) Variables do not have the " Edited April 19, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
Guest hakcenter Posted April 19, 2004 Share Posted April 19, 2004 still not working (Inside INI) ex: TESTPATH=Test Me TESTEXE=Test.exe I don't know if having the space inside the path is a problem... but it refuses to work still. Link to comment Share on other sites More sharing options...
ezzetabi Posted April 19, 2004 Share Posted April 19, 2004 TEST ME is not a path! a path is something like "c:\test me" and if you have spaces uses the commas Link to comment Share on other sites More sharing options...
Guest hakcenter Posted April 19, 2004 Share Posted April 19, 2004 use the commas around what? and i forgot to post the c:\path\test me Link to comment Share on other sites More sharing options...
ezzetabi Posted April 19, 2004 Share Posted April 19, 2004 (edited) TEST.AU3 $TESTPATH = IniRead("config.ini", "Delays", "TESTPATH", "NotFound") $TESTEXE = IniRead("config.ini", "Delays", "TESTEXE", "NotFound") run($TESTEXE, $TESTPATH) Config.ini [Delays] testpath="C:\Documents and Settings\Ezzetabi\Desktop" testexe="C:\Documents and Settings\Ezzetabi\Desktop\WinAudit.exe" Worked perfecly, I can't understand what problems you can still have. Edited April 19, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
NiCoTiNe Posted April 29, 2004 Share Posted April 29, 2004 (edited) I am having a similar problem here TSO.au3: $Path = IniRead("TSO.ini", "Global", "Path", "") $File = IniRead("TSO.ini", "Global", "File", "") Run($Path, $File)TSO.ini:[Global] Path="C:\TSO" File="C:\TSO\tso.exe" Error Returned:AutoIt Error Line 33 (File "C:\blah\blah\TSO.au3")L Run($Path, $File) Error: Unable to execute the external program. Access is denied. Edited April 29, 2004 by NiCoTiNe 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