Results 1 to 3 of 3

Thread: open text file with notepad??

  1. #1
    Guest

    Smile

    I've tried to open the text file with notepad with the
    following command


    ShellExecute(Me.hwnd, "open", "c:\temp\readme.txt", 0&, 0&, SW_SHOWNORMAL)

    but it wouldn't do anything, I'm pretty sure in the register, the txt file is associated with notepad

    Any idea?

    Thank you in advance for any help!!

  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    KC
    Posts
    72
    Shell "Notepad c:\MyFile.txt", vbNormalFocus

  3. #3
    Guest
    Code:
    Shell "Notepad.exe C:\mytxt.txt", vbNormalFocus
    Not only can you read text files..but you can read the inside of a bat, com, exe, or any other file as well.

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