|
-
Nov 9th, 2000, 10:19 AM
#1
Thread Starter
Lively Member
id like to launch notepad and load a file in it automatically without using an api call if i could. can vb do this?
thanks
-
Nov 9th, 2000, 10:22 AM
#2
Frenzied Member
No Problem
Code:
Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
[Edited by Evan on 11-09-2000 at 10:25 AM]
-
Nov 9th, 2000, 10:30 AM
#3
Frenzied Member
Why don't you want to use the api? (if I may ask)
It's better in my opinion because you can just select a txt file and let windows run the standard app for that filetype.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 9th, 2000, 10:42 AM
#4
Re: No Problem
Originally posted by Evan
Code:
Shell "C:\windows\notepad.exe C:\windows\readme.txt", vbNormalFocus
[Edited by Evan on 11-09-2000 at 10:25 AM]
You don't even need to include "C:\Windows\".
Code:
Shell "Notepad.exe C:\mytxt.txt",vbNormalFocus
'or
Shell "Notepad C:\mytxt.txt", vbNormalFocus
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
|