|
-
Feb 3rd, 2004, 10:20 AM
#1
Thread Starter
Fanatic Member
using wordpad
With This code ShellExecute 0, "Open", sFileName, 0, 0, 3
i can open a file using notepad, but if i want to use wordpad?
Can anyone help, pls?
-
Feb 3rd, 2004, 10:40 AM
#2
Hyperactive Member
hi,
use shell like:
Shell ("C:\Program Files\Windows NT\Accessories\wordpad.exe Try.txt")
A man with nothing to live for has everything to fight for...
-
Feb 3rd, 2004, 10:42 AM
#3
VB Code:
ShellExecute 0, "Open", "wordpad", "C:\test.txt", 0, 3
-
Feb 3rd, 2004, 10:58 AM
#4
Frenzied Member
Originally posted by kleinma
VB Code:
ShellExecute 0, "Open", "wordpad", "C:\test.txt", 0, 3
A lot of the built in windows apps are in the environment variables, so you can call them with their names...(this includes the command prompt(cmd), explorer etc.)
Cheers
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|