Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2005, 03:26 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default calling an external application

How do i call an external application? I've tried using the codes shown below but it doesn't work. Any solutions or alternatives?

        ' Get a file name relative to the current Web app.
        Dim file As String = Server.MapPath("~/Monitor.exe")
        If Not System.IO.File.Exists(file) Then
            Response.Write("Could not find file: " & file)
            Response.End()
        End If


        Dim info As New ProcessStartInfo(file)
        'ProcessStartInfo(file)
        info.FileName = file

        ' Redirect output so we can read it.
        info.RedirectStandardOutput = True
        'To redirect, we must not use shell execute.
        info.UseShellExecute = False

        ' Create and execute the process.

        Dim p As Process = Process.Start(file)
        p.Start()





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling external scripts from XSLT dextermagnific XSLT 2 June 25th, 2007 03:55 AM
Calling to an external .jar file tony_s XSLT 3 December 16th, 2006 05:20 PM
calling an external application forlorn Classic ASP Basics 0 August 19th, 2005 03:22 AM
Launch external application kikashi VB How-To 0 May 14th, 2005 01:36 PM
Calling external classes and/or subs/funcs jmischo VBScript 2 December 16th, 2004 08:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.