hexOffender
Programmer
I have a script that opens first a scaner Application, and when that closes I want to open an app that I wrote in VB.net. here is the script...
set WshShell = Wscript.CreateObject("WScript.Shell")
cmdID = WshShell.run( "FImage.exe" ,9 )
WSHShell.AppActivate( cmdID )
'WshShell.run"FImage.exe" ,9,true
wscript.sleep 100
wshshell.SendKeys "%s"
wshshell.SendKeys "f"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 50
wshShell.sendkeys "{TAB}"
wscript.sleep 50
wshShell.sendkeys "{TAB}"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 100
WshShell.sendkeys ("%{F4}")
WshShell.run "C:\Program Files\MWPH\PatientImages\MWPH Patient Images.exe"
Is it because of the spaces in the executable name that it wont open?
set WshShell = Wscript.CreateObject("WScript.Shell")
cmdID = WshShell.run( "FImage.exe" ,9 )
WSHShell.AppActivate( cmdID )
'WshShell.run"FImage.exe" ,9,true
wscript.sleep 100
wshshell.SendKeys "%s"
wshshell.SendKeys "f"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 50
wshShell.sendkeys "{TAB}"
wscript.sleep 50
wshShell.sendkeys "{TAB}"
wscript.sleep 50
WshShell.SendKeys "{ENTER}"
wscript.sleep 100
WshShell.sendkeys ("%{F4}")
WshShell.run "C:\Program Files\MWPH\PatientImages\MWPH Patient Images.exe"
Is it because of the spaces in the executable name that it wont open?