Results 1 to 5 of 5

Thread: Killing a Server-Side App from ASP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    142
    A few weeks ago, I was trying to launch a server side application from ASP and Mark Sreeves posted the following code, which works great:

    Code:
    Option Explicit
    
    Public Function RunExe(ByVal Filename As String) As Long
    On Error Resume Next
    
    Shell Filename
    
    'return the error if any
    RunExe = Err.Number
    
    End Function
    How would I then kill this application? Does
    Code:
    kill Filename
    exist? If not, is there a better way?

    Thanks!
    dvst8
    Secret to long life:
    Keep breathing as long as possible.

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    Kill does exist but be warned misused can cause some fun things.

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    the kill command deletes a file

    it's not for killing a process


    Mark
    -------------------

  4. #4
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    Can you

    kill System

    ??

    Someone in the forums was asking that once...

    Would that kill your os?


  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    142
    it's not for killing a process
    then is there a way to do it?

    tx
    /d8


    Secret to long life:
    Keep breathing as long as possible.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width