|
-
Oct 14th, 2001, 01:36 PM
#1
Thread Starter
New Member
Running non-exe files from VB
I am presently writing a small utility app for dealing with Microsoft Data Link(.udl) files. I would like the app to run such a file to open it for editing by the user.
Now I know the Shell command runs .exe files, but is there a way of opening a non-exe file like the .udl?
If anyone can shed some light on this problem, I would be really grateful.
-
Oct 14th, 2001, 01:39 PM
#2
Frenzied Member
the ShellExecute() API will run a file with its associated program. This link points to an example.
http://freevbcode.com/ShowCode.Asp?ID=2443
Greg
Free VB Add-In - The Reference Librarian
Click Here for screen shot and download link.
-
Oct 14th, 2001, 02:50 PM
#3
Thread Starter
New Member
Yeah...Works a treat!
I wondered whether I would have to use API in the end.
A very quick solution.
Ta very much Greg!
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
|