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
Printable View
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
[Edited by Evan on 11-09-2000 at 10:25 AM]Code:
Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
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.
You don't even need to include "C:\Windows\".Quote:
Originally posted by Evan
[Edited by Evan on 11-09-2000 at 10:25 AM]Code:
Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
Code:Shell "Notepad.exe C:\mytxt.txt",vbNormalFocus
'or
Shell "Notepad C:\mytxt.txt", vbNormalFocus