Link to home
Start Free TrialLog in
Avatar of genesisproject
genesisproject

asked on

loading and opening a txt file in notepad

i have a program that creates a text file.

after the processing has been completed I want it to open in notepad.  how do i do this in vb
Avatar of Shauli
Shauli

Shell ("notepad your path and filename.txt"), vbNormalFocus

S
ASKER CERTIFIED SOLUTION
Avatar of Harisha M G
Harisha M G
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Set objShell = CreateObject("WScript.Shell")
objShell.Run "notepad test.txt"

Obviously change test.txt to the name of your notepad document.  This is VB script but should be very similar in VB.
A little late :(