Results 1 to 6 of 6

Thread: invoking an application to execute

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    manila
    Posts
    6
    Friends,

    i would like to run an application ( msword.exe) by clicking a command button. Can anyone suggest what to do...

    thanx,
    bo

  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    From an ASP page?

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    manila
    Posts
    6

    wrong post page

    i wanna do it in vb6 not in asp


  4. #4
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Smile Use Shell command

    If I remember correctly, you can use the "shell" command in VB6
    For example:
    Sub Button_onclick
    Shell (C:\....(path of MSword)..\MSword.exe)
    End Sub

  5. #5
    New Member
    Join Date
    Aug 2000
    Location
    In
    Posts
    5

    function

    make use of the following function.


    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    manila
    Posts
    6
    thanks guys........

    got it!

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