|
-
Jul 11th, 2000, 03:13 PM
#1
I've tried to open the text file with notepad with the
following command
ShellExecute(Me.hwnd, "open", "c:\temp\readme.txt", 0&, 0&, SW_SHOWNORMAL)
but it wouldn't do anything, I'm pretty sure in the register, the txt file is associated with notepad
Any idea?
Thank you in advance for any help!!
-
Jul 11th, 2000, 03:28 PM
#2
Lively Member
Shell "Notepad c:\MyFile.txt", vbNormalFocus
-
Jul 11th, 2000, 09:40 PM
#3
Code:
Shell "Notepad.exe C:\mytxt.txt", vbNormalFocus
Not only can you read text files..but you can read the inside of a bat, com, exe, or any other file as well.
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
|