Results 1 to 4 of 4

Thread: can i launch notepad w/o using api?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Location
    Phoenix
    Posts
    87
    id like to launch notepad and load a file in it automatically without using an api call if i could. can vb do this?

    thanks

  2. #2
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Lightbulb No Problem

    Code:
    Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
    [Edited by Evan on 11-09-2000 at 10:25 AM]

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Why don't you want to use the api? (if I may ask)

    It's better in my opinion because you can just select a txt file and let windows run the standard app for that filetype.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Guest

    Re: No Problem

    Originally posted by Evan
    Code:
    Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
    [Edited by Evan on 11-09-2000 at 10:25 AM]
    You don't even need to include "C:\Windows\".

    Code:
    Shell "Notepad.exe C:\mytxt.txt",vbNormalFocus
    'or
    Shell "Notepad C:\mytxt.txt", vbNormalFocus

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