Jump to content
Sign in to follow this  
rec9140

RunWait ShellExecuteWait

Recommended Posts

rec9140

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.

Share this post


Link to post
Share on other sites
Valuater

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)


NEWHeader1.png

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  

×