• Welcome to Valhalla Legends Archive.
 

Shell Function and Text Documents

Started by Dyndrilliac, November 07, 2003, 08:39 AM

Previous topic - Next topic

Dyndrilliac

If you useShell (App.Path + "\TextDocument.txt" Would it open the text document in the default program? (I.E., Notepad)
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.


K

No.  You can use the ShellExecute API for this purpose, though.

iago

You can run it as a parameter of notepad, ie shell("Notepad C:\system.ini") will probably open system.ini in notepad.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Stealth

Shell "notepad " & myTextFilePath, vbNormalFocus

Yep.
- Stealth
Author of StealthBot

iago

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*