|
-
Nov 27th, 2000, 04:39 AM
#1
Thread Starter
Evil Genius
Hi everyone, I normally use the shell command to open a program, or giver the user a commondialog box. Can someone please tell me how to open a file other than an executable?
Thank you
-
Nov 27th, 2000, 04:58 AM
#2
Fanatic Member
Hi Alex,
Depends what do you want to do with the file?, if it's a BAT file you could open it as you would a text file, read lines into a string and process them accordingly...
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Nov 27th, 2000, 05:00 AM
#3
Thread Starter
Evil Genius
Sorry, I mean just excecute / run it though it were a program / exe for example. Nothing fancy like writing to this. Thank you
-
Nov 27th, 2000, 05:08 AM
#4
PowerPoster
ShellExecute
Perhaps you can try the ShellExecute API function
-
Nov 27th, 2000, 05:14 AM
#5
Thread Starter
Evil Genius
That's the one! Thank you!
-
Nov 27th, 2000, 05:18 AM
#6
PowerPoster
...
you also can take a look on this page for more information about the ShellExecute API function
http://www.vbapi.com/ref/s/shellexecute.html
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
|