Valhalla Legends Forums Archive | Visual Basic Programming | Shell Function and Text Documents

AuthorMessageTime
Dyndrilliac
If you use[code]Shell (App.Path + "\TextDocument.txt"[/code] Would it open the text document in the default program? (I.E., Notepad)
November 7, 2003, 2:39 PM
Spht
Try it?
November 7, 2003, 3:26 PM
K
No. You can use the ShellExecute API for this purpose, though.
November 7, 2003, 5:43 PM
iago
You can run it as a parameter of notepad, ie shell("Notepad C:\system.ini") will probably open system.ini in notepad.
November 7, 2003, 6:40 PM
Stealth
[code]Shell "notepad " & myTextFilePath, vbNormalFocus[/code]

Yep.
November 7, 2003, 11:13 PM
iago
[quote author=Stealth link=board=31;threadid=3469;start=0#msg27989 date=1068246812]
[code]Shell "notepad " & myTextFilePath, vbNormalFocus[/code]

Yep.
[/quote]

Although I would recommend UEdit32, www.ultraedit.com. I use it for all my non-programming.
November 8, 2003, 4:18 AM

Search