random8011 0 Posted August 6, 2004 runwait("regedit -s ins\reg\oracle.reg")it seems work ok.but in my two scripts:one done,another seems take no effectis'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") Share this post Link to post Share on other sites
trids 2 Posted August 6, 2004 This looks similar to something I struggled with too 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 Share this post Link to post Share on other sites