Results 1 to 4 of 4

Thread: Help Please Help!!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    23
    Hi this is just a bit urgent. Okay now up to now the only way i know how to execute a a .exe file from a vb app is to use the oem control. But i need to be able to execute an .exe program by clicking on an image or a button what code would i use??? Please help thanks. Either respond here or e-mail me at [email protected] ... :-)
    Rember to visit my website at www.c-interactive.co.uk

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    Have you ever tried using the Shell function?
    Here's a sample,
    Code:
    Option Explicit
    
    Private Sub Form_Load()
        Shell "c:\windows\notepad.exe", vbNormalFocus
    End Sub

  3. #3
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    Have you ever tried using the Shell function?
    Here's a sample,
    Code:
    Option Explicit
    
    Private Sub Form_Load()
        Shell "c:\windows\notepad.exe", vbNormalFocus
    End Sub
    Hope it helps,
    Desire.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    23
    Thank you sooooo much tahnk you for your help this will really help. Belive it or not i am making a little shell replacment in vb well i'm trying lol.

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