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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I launch notepad.exe from a web page

Status
Not open for further replies.

mikehrub

Technical User
Sep 6, 2000
7
US
I have seen the code below to launch external applications from VBScript. The problem I am having is the same code doesn't seem to work in a web page. I am not sure what tags I should use with the code and when I try and run the following code:
Dim WshShell Set
WshShell = CreateObject("Wscript.shell")
WshShell.Run ("Notepad.exe)
Netscape gives me the following error message:
Microsoft VBScript runtime error'800a01a8'
Object required: 'WScript'
+ the line of the error

Any thank you for any help.
[sig][/sig]
 
you have to do:

WshShell = Server.CreateObject(&quot;Wscript.shell&quot;) [sig]<p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br> [/sig]
 
sorry, my bad, but if you are doing this, it will open up notepad on the server. I don't know if that's what you want to do or not. you have to keep in mind that vbscript stuff will only work with ie, so pretty much you are restricted to using vb for server side stuff [sig]<p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br> [/sig]
 
is there a way to call a vbs file on the server through the web page and have it process in netscape on the client. [sig][/sig]
 
Check out Windows Management Instrumentation (WMI). This allows you to ...

With WMI, developers can write management applications that:

Monitor, configure and control management information about the Windows operating system, devices, the Active Directory, the system Registry, performance counters and much more using a single, object-oriented, remote-enabled and scriptable interface.

Execute methods on managed objects to perform complex operations (e.g., compress a file, reboot a remote system).
Receive user-defined events based on changes in any management data visible through WMI as well as events from SNMP devices and the Window NT Event Log.
Extend the standard WMI instrumentation with your own management data for your application, service or device. The same set of instrumentation can then be used by your management applications, script writers and commercial management tools.

Fengshui1998 [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top