Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Dyndrilliac on November 07, 2003, 08:39 AM

Title: Shell Function and Text Documents
Post by: Dyndrilliac on November 07, 2003, 08:39 AM
If you useShell (App.Path + "\TextDocument.txt" Would it open the text document in the default program? (I.E., Notepad)
Title: Re:Shell Function and Text Documents
Post by: Spht on November 07, 2003, 09:26 AM
Try it?
Title: Re:Shell Function and Text Documents
Post by: K on November 07, 2003, 11:43 AM
No.  You can use the ShellExecute API for this purpose, though.
Title: Re:Shell Function and Text Documents
Post by: iago on November 07, 2003, 12:40 PM
You can run it as a parameter of notepad, ie shell("Notepad C:\system.ini") will probably open system.ini in notepad.
Title: Re:Shell Function and Text Documents
Post by: Stealth on November 07, 2003, 05:13 PM
Shell "notepad " & myTextFilePath, vbNormalFocus

Yep.
Title: Re:Shell Function and Text Documents
Post by: iago on November 07, 2003, 10:18 PM
Quote from: Stealth on November 07, 2003, 05:13 PM
Shell "notepad " & myTextFilePath, vbNormalFocus

Yep.

Although I would recommend UEdit32, www.ultraedit.com.  I use it for all my non-programming.