VB

Started by
2 comments, last by Pillejunior 22 years, 6 months ago
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
Advertisement
Call Shell("notepad.exe C:\file.txt", 1)
i beleive its called the command line:

shell app command_line

most programs accept command line parameters.


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.

This topic is closed to new replies.

Advertisement