MSFN Forum: script error - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

script error Rate Topic: -----

#21 User is offline   MitsuMan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 148
  • Joined: 12-March 06

Posted 12 September 2012 - 02:40 AM

hello

i must ask one more time sorry........

my vbs script is this
CreateObject("Wscript.Shell").Run "install.bat",0,True


How do i make the vbs script wait for the install.bat to finish.

My plan was to hide the cmd window and that make this script but when the script has start
the vbs script is finish. but then wpi will go to next one even the install.bat is not finish.


#22 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,393
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 September 2012 - 03:37 AM

As example I use a vbs file like this (active.cmd is set inside: %Windir%\Setup\scripts):

active.vbs
' To hide the 'active.cmd' batch execution

Set WshShell = WScript.CreateObject("WScript.Shell" )
WshShell.Run "%SystemRoot%\Setup\scripts\active.cmd" ,SH_WIDE ,true







Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy