Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute remote application

Status
Not open for further replies.

memi

Programmer
Oct 17, 2001
7
IL
Hi.

I need to execute an Internet Explorer on other workstation, so that the IE would appear on the remote workstation.

How can I do that in ASP?
 
Do you mean you want to run IE on another machine on the same LAN? I'm not sure if you can do this via ASP....I believe this is more geared towards Windows programming.

At the very least, you'll need to somehow be able to control IEXPLORE.EXE on the other workstation.
 


memi,

You should be able to do this through WMI (Windows Management and Instrumentation) as long as you have the access rights to that workstation. As long as the workstation supports WMI and scripting, you should be able to do it.


Cheers,
fengshui_1998
 
FengShui1998, could you please supply more details about the WMI? I don't know it.

Thanks!
 


Try this,

On Error Resume Next
Set Locator = CreateObject("WbemScripting.SWbemLocator")
user = server & "\" & accnt
pwd = "yourpassword"

Set Service = Locator.ConnectServer(Server, "root\cimv2", user, pwd)
Service.Security_.impersonationlevel = 3
Set Process = Service.Get("Win32_Process")
strCmd = "IExplore.exe"
intStatus = Process.Create("cmd /C " & strCmd, null, null, intProcessId)

Cheers,
fengshui_1998




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top