Results 1 to 5 of 5

Thread: Open Text File In Notepad {RESOLVED}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member SeanK's Avatar
    Join Date
    May 2002
    Location
    Boston MA
    Posts
    1,160

    Resolved Open Text File In Notepad {RESOLVED}

    My application generates a number of .Log files. All are standard text files that I can easily view in Notepad. What I'd like to do is add a menu item which, from within my program, my user to open them and view them, in notepad. I've tried:
    VB Code:
    1. Shell "c:\myfolder\mylog.log", vbNormalFocus
    2. 'and I have tried
    3. Shell "notepad.exe c:\myfolder\mylog.log", vbNormalFocus
    And neither one works. What am I doing wrong?
    Last edited by SeanK; Feb 2nd, 2005 at 09:51 AM.
    Beantown Boy
    Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.

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