Results 1 to 5 of 5

Thread: How to open other application from VB?

  1. #1

    Thread Starter
    Addicted Member thiru_rajamani's Avatar
    Join Date
    Aug 2004
    Location
    Chennai,India
    Posts
    214

    Exclamation How to open other application from VB?

    Dear all,
    How to open other applications such as excel, autocad,solidworks etc.?
    please explain in detail with example codes?

    Thankyou
    Regards.
    Rajamani

  2. #2
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    Try out the shell function.

    VB Code:
    1. Shell "C:\program.exe"

    To use it you'll need the filename and path, so there may be other better ways. It also has several other options, so take a look at the help files for it too.

  3. #3

    Thread Starter
    Addicted Member thiru_rajamani's Avatar
    Join Date
    Aug 2004
    Location
    Chennai,India
    Posts
    214

    Question still I have doubt?

    Dear imbue,
    thank you for your reply. But I have another doubt, in one system "xxx.exe" is saved on "c:" and in another system in "d:", If I use the same program in another system (I have used shellll command) it does not work.
    How to solve this?

    Thanks
    Reg
    Rajamani

  4. #4
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    I have no idea of how to do that without either asking the user where it's installed or getting the path for the executable via a file it is associated with, like using the FindExecutable API.

    It is also probably possible that you could find where it's installed by looking at the uninstall info, but this could easily chage from version to version aswell.

    Or you could search the first time you need the filename and path and then rember where it was the next time, you have a lot of options here.

  5. #5

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