Results 1 to 3 of 3

Thread: Opening a File in an App

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    49

    Opening a File in an App

    With a click of a button, is there a way i can open up a program called TextPad and open specified files within it. I know i could do:

    Shell "C:\Program Files\TextPad 4\TextPad.exe"

    But I'd like a specified text file to be opened up with TextPad.

  2. #2
    Lively Member sishe's Avatar
    Join Date
    Aug 2004
    Location
    Izmit/Turkey
    Posts
    115

    Re: Opening a File in an App

    You can use;

    VB Code:
    1. Shell "Notepad Test.txt"
    System Halted..
    -----------------------------------------
    Sishe

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Opening a File in an App

    or Textpad, even

    Shell "C:\Program Files\TextPad 4\TextPad.exe test.txt"

    make sure you are in the folder that contains test, otherwise, you'll need the path to that also. For spaces, I think you need shell execute.

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