Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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()

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.