Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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:22 AM
Registered User
Join Date: Aug 2005
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. Pls help

        ' 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)
        End If

        Dim info As New 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)

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 Professional 0 August 19th, 2005 03:26 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.