hi im trying to instal windows X 6.1 and im calling my vbs script from a batch file like this
ECHO.
ECHO Installing Windows X 6.1
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WindowsX\wx.vbs
here is my vbs script and it does work fine when i test it regular.
dim WshShell, iLoopTimeWait
Set WshShell = WScript.CreateObject("WScript.Shell")
iLoopTimeWait = 500
Function Connect2Window(iTime, sWindowName)
Do until WshShell.AppActivate (sWindowName)
WScript.Sleep iTime
loop
End function
WshShell.Run app & "msn61-winx.exe"
connect2window ilooptimewait, "MSN Messenger 6.1 - Windows X"
WshShell.SendKeys "{Tab}"
WshShell.SendKeys "{ENTER}"
Connect2Window iLoopTimeWait, "MSN Messenger 6.1 Setup"
WshShell.SendKeys "{ENTER}"
wscript.sleep 5000
WshShell.SendKeys "%a"
WshShell.SendKeys "{ENTER}"
wscript.sleep 60000
WshShell.SendKeys "{Tab}"
WshShell.SendKeys "{DOWN 10}"
wscript.sleep 5000
WshShell.SendKeys "%a"
wscript.sleep 20000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WScript.Quit
now by calling it like that from my batch file i get this error to pop up can any one tell me what im doing wrong and how to fix my problem ?
look here to see the error in a bmp image
http://www.geocities.com/crystal_dragon76/error.bmp