View Single Post
  #4 (permalink)  
Old Jan 7th, 2008, 08:53
welshstew's Avatar
welshstew welshstew is offline
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,431
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: Using Asp to execute a command in a .exe file

this works for me:
Code: Select all
<% 

Dim batchFile
Dim oShell

batchFile = "C:\SafariSetup.exe"

Set oShell = CreateObject("WScript.Shell")

oShell.Run batchFile,3,false

Set oShell = Nothing

If Err.Number <> 0 Then
    If oShell <> Nothing Then Set oShell = Nothing
End If
%>
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Reply With Quote