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.
Printable View
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.
You can use;
VB Code:
Shell "Notepad Test.txt"
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.