Jump to content

The Trouble Runwait!


Recommended Posts

runwait("regedit -s ins\reg\oracle.reg")

it seems work ok.

but in my two scripts:

one done,another seems take no effect

is't a bug??

runwait("ins\oracle.exe -silent")

runwait("regedit -s ins\reg\oracle.reg")

$Path = RegREad("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment","Path")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment","Path","REG_EXPAND_SZ", $Path&";c:\oracle\ora81\bin")

Link to comment
Share on other sites

This looks similar to something I struggled with too :ph34r:

Control will only pass on after the RunWait has completed .. which means, when the ins\oracle.exe -silent has finished running .. not just started running.

Try a plain Run (instead of RunWait), followed by WinWaitActive if necessary.

HTH :(

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...