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?
Printable View
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?
hi,
use shell like:
Shell ("C:\Program Files\Windows NT\Accessories\wordpad.exe Try.txt")
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.)Quote:
Originally posted by kleinma
VB Code:
ShellExecute 0, "Open", "wordpad", "C:\test.txt", 0, 3
Cheers