Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: trying to run a VB script from an aspx page.


Message #1 by "Kirby Wintermeyer" <kwintermeyer@i...> on Mon, 2 Dec 2002 18:20:41
Using WebMatrix and trying to get a VB script file to run in and .aspx 
page using response.redirect("http://<servername>/<scriptname>.vbs")

The vbs script does the following:

Set WshShell = Wscript.CreateObject("WScript.Shell")
Wshshell.run "\\<servername>\<sharename>\ie6setup.exe"

I am using RC1 of Microsoft .Net server which is using IIS 6.0

I get an error message when I run this from Ie6: The page cannot be found

I have checked the security permissions on the directories.  

The code works when I coded it just using standard ASP pages.

I am just starting to code in asp.net and I have looked at trying to 
accomplish this using the .NET Framework class Library  "Process Class" . 
This allows you access to local and remote processes and enables you to 
start and stop local system processes. I am trying to use the 
member 'System.Diagnostics.Process' type to run an executable file from 
within the ASP.net framework. No luck yet.

If anyone out there can point me to some sample code to get this to work 
it would be appreciated.

Also looking for any good books that show sample code in ASP.Net for 
system administrators. ie (reading the event viewer log on any local or 
remote server)

Kirby

  Return to Index