Skip to main content
gamedev.net
🔒 Locked

VB

Started by Pillejunior Oct 22, 2001 at 2:59 PM 2 replies 350+ views
Original Post
Pillejunior
Pillejunior
How can you open a notepad file within a vb program. I can open notepad but i can''t open it with a specific file. Does anyone now how you must do that?? Thanx in advance
EvilCrap
EvilCrap
i beleive its called the command line:

shell app command_line

most programs accept command line parameters.


Surfer
Surfer
Shell "notepad.exe c:\a.txt", vbNormalFocus

Window style is optional, so if you dont use it notepad will be minimized. If you want your users to definitely see your text file, use vbMaximizedFocus.

Hope that works for you the same it did for me.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.