RemingtonSteel
Programmer
Hi,
I have made a VB Script but I want to write the application in VB6 so I can compile it to EXe.
I have studied the FSO but I don't see the
command to replace the Shell,Run and Sendkeys command in VB6.
Any help is greatly appreciated.
------------ Below is my VB Script that worked but I would like to make a VB6 Version of it so I can compile it.
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""C:\Program Files\Avantis\Programs\Application.exe"""
WScript.Sleep 100
'Replace the string yourpassword~ below with
'the password used on your system. Include tilde
oShell.Sendkeys "Password"
Wscript.Quit
I have made a VB Script but I want to write the application in VB6 so I can compile it to EXe.
I have studied the FSO but I don't see the
command to replace the Shell,Run and Sendkeys command in VB6.
Any help is greatly appreciated.
------------ Below is my VB Script that worked but I would like to make a VB6 Version of it so I can compile it.
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""C:\Program Files\Avantis\Programs\Application.exe"""
WScript.Sleep 100
'Replace the string yourpassword~ below with
'the password used on your system. Include tilde
oShell.Sendkeys "Password"
Wscript.Quit