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
i beleive its called the command line:
shell app command_line
most programs accept command line parameters.
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.
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
Popular Topics
Advertisement