Results 1 to 6 of 6

Thread: [SORTED]Shell Exe help..

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Resolved [SORTED]Shell Exe help..

    Out of pure boredom I just tried this:

    VB Code:
    1. Private Sub Command1_Click()
    2. Dim PFEnvironVar As String
    3. Dim FilePath As String
    4. PFEnvironVar = Environ$("PROGRAMFILES")
    5. FilePath = PFEnvironVar & "\MSN Messenger\mailtmpl.txt"
    6. MsgBox FilePath
    7. Shell FilePath, vbNormalFocus
    8. End Sub

    FilePath produces the right directory and everything, but the shell doesn't seem to work... Would like to know what i'm doing wrong

    Thanks

    Edit: I'm getting "File not found" but I know it exists...
    Last edited by BefunMunkToloGen; May 8th, 2005 at 02:10 PM.

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