Results 1 to 3 of 3

Thread: Running non-exe files from VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Fritchley, Derbyshire, UK
    Posts
    4

    Question 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.
    Al

  2. #2
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Fritchley, Derbyshire, UK
    Posts
    4

    Smile

    Yeah...Works a treat!

    I wondered whether I would have to use API in the end.

    A very quick solution.

    Ta very much Greg!

    Al

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width