|
-
Jul 18th, 2005, 07:38 PM
#1
Thread Starter
New Member
Opening a *.txt in Notepad
This should be so simple, I know. I have already created and closed the file, let's say "xyz.txt", and now I need to open it in notepad so the user can see, edit, and/or Save As. How do I do this in VB6?
-
Jul 18th, 2005, 07:42 PM
#2
Frenzied Member
Re: Opening a *.txt in Notepad
Try calling notepad with Shell and add the file's name and path as a parameter
-
Jul 19th, 2005, 05:51 AM
#3
Re: Opening a *.txt in Notepad
Welcome to the forums.
VB Code:
Private Sub Command1_Click()
Shell "notepad c:\xyz.txt", vbNormalFocus
End Sub
-
Jul 19th, 2005, 12:27 PM
#4
Thread Starter
New Member
Re: Opening a *.txt in Notepad
Thanks, that helps a lot.
-
Jul 19th, 2005, 12:38 PM
#5
Supreme User
Re: Opening a *.txt in Notepad
Remember you can use Google as your friend, or the built in Search engine on this forum
-
Jul 19th, 2005, 02:12 PM
#6
Re: Opening a *.txt in Notepad
Madboy: Did you happen to see the Delphi question in the API section?
-
Jul 19th, 2005, 04:00 PM
#7
Supreme User
Re: Opening a *.txt in Notepad
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
|