Jump to content

how to run external application by using visual basic

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
renoald

renoald

    Newbie

  • Members
  • Pip
  • 8 posts
i want to build the program like this: when i click button , it will open the file with the application i want. for example, click the button , the file open with notepad.
who know how to do it?
please tell me ! thank you!!!

#2
mbshinde78

mbshinde78

    Newbie

  • Members
  • PipPip
  • 19 posts
Hi,

If you are asking about a VB function then you can do so with the Shell function.

For example

Shell "c:\windows\notepad.exe"

You can also use API function ShellExecute. You need to go through the API documentation for parameter details

#3
renoald

renoald

    Newbie

  • Members
  • Pip
  • 8 posts
Thank for your help ! your suggestion is very helpful to me!

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What does your final code look like?

#5
renoald

renoald

    Newbie

  • Members
  • Pip
  • 8 posts
i still in doing it ! i will post the code after i finish it !

#6
eichalmon

eichalmon

    Newbie

  • Members
  • Pip
  • 2 posts
Hi!!

Thanks for your Question...

I'm leaning Programmer....

#7
renoald

renoald

    Newbie

  • Members
  • Pip
  • 8 posts
This is the code i write for this application:

System.Diagnostics.Process.Start("Notepad", "C:\Project\" & c_File)

Edited by Jaan, 29 September 2008 - 11:46 AM.
Please use code tags when you're posting your codes!