Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wshell.Run - wait for completion causing script to fail?

Status
Not open for further replies.

MadGeni

Technical User
Dec 13, 2002
19
GB
Hi there,
i've written something to call connect:direct (file transfer tool), however it's important to know that it's completed it's transfer, rather than just sent it to the queue.

However, when i use:

cmd="%comspec% /c Direct.exe -nservername -uuser -ppwd < transferfile.txt"

cdtransfer = wshshell.run(cmd,1,true)

it fails, when I don't wait for it to finish, it will run fine (although not giving me the returncode I need natch.)

Any help much appreciated!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top