Results 1 to 4 of 4

Thread: [RESOLVED] Open .EXE

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Resolved [RESOLVED] Open .EXE

    Is there anyway to see if there is an .EXE in a directory and if there is open it

    i tried this
    VB Code:
    1. If "C:\Program Files\MSN Messenger\msnmsgr.exe" = "" then
    2. Shell "C:\Program Files\MSN Messenger\msnmsgr.exe"
    3. Else
    4. Shell "C:\Program Files\Messenger\msmsgs.exe"
    5. End If

    Thnks in advance Chris1990

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Open .EXE

    VB Code:
    1. If Dir$("C:\Program Files\MSN Messenger\msnmsgr.exe") <> vbNullString Then
    2.    Shell "C:\Program Files\MSN Messenger\msnmsgr.exe"
    3. Else
    4.    MsgBox "It aint there!",vbOkOnly + vbInformation,"Sorry Dude"
    5. End If
    6. End Sub

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Re: Open .EXE

    Thanks

  4. #4
    Addicted Member
    Join Date
    Aug 2006
    Posts
    208

    Re: [RESOLVED] Open .EXE

    this helped me to =)

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