rec9140 Posted April 30, 2009 Share Posted April 30, 2009 I am trying to get some CLI programs to run using RunWait, ShellExecuteWait with no success The programs are brc32.exe - a rename utility winscp.com - ftp for sftp/ftp etc... I've tried examples from searches and the help file, no succes. $val = RunWait("c:\Program Files\winscp\BRC32.exe /PATTERN:'SOI*.pdf' /PREFIX:'1_' /DIR:'X:\077Souther\Reports\NoConditions'", @WindowsDir, @SW_MAXIMIZE) $val = RunWait("c:\Program Files\winscp\BRC32.exe " & '/PATTERN:"SOI*.pdf" /PREFIX:"1_" /DIR:"X:\077Souther\Reports\NoConditions" /EXECUTE', "", "") These do nothing but present up a quick black DOS box that disappears and then randomly gives error codes of 0,1 and/or a PID, but these never run. Even a simple BAT file will not run when called. winscp.com and BRC32.exe are in the %PATH% and I've run it from a DOS box with out issue. Just can not get AutoIt to run these. AutoIt V1.76 XP SP2 How do you get these commands to run and the script to wait for these commands with the parameters? I am loosing my mind. Thanks. Link to comment Share on other sites More sharing options...
Valuater Posted April 30, 2009 Share Posted April 30, 2009 1st Replace "AutoIt V1.76" with Autoit3.3.0+http://www.autoitscript.com/autoit3/downloads.shtml.... Then, be sure to download the "full" SciTe Editor on that same page8) Link to comment Share on other sites More sharing options...
rec9140 Posted April 30, 2009 Author Share Posted April 30, 2009 1st Replace "AutoIt V1.76" with Autoit3.3.0+http://www.autoitscript.com/autoit3/downloads.shtmlI already have a current V3.x with Scite V1.76.Thanks. Link to comment Share on other sites More sharing options...
Valuater Posted April 30, 2009 Share Posted April 30, 2009 I don't know the program or the arguments involved, but I always use a message box to test the outcome Hope it helpps $val = MsgBox(4096, "", "c:\Program Files\winscp\BRC32.exe " & '/PATTERN:"SOI*.pdf" /PREFIX:"1_" /DIR:"X:\077Souther\Reports\NoConditions" /EXECUTE') 8) 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