Jump to content
Parcker

Mandar executar .exe

Recommended Posts

Parcker

Queria saber o código para ao carregar num botão ele mandar executar um ficheiro .exe

Mais ou menos isto:

Executar(C:\Users\User\Pasta\Programa.exe)

Share this post


Link to post
Share on other sites
ribeiro55

Process.Start()


Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Share this post


Link to post
Share on other sites
Parcker

Mesmo isto. :cheesygrin:

Agora queria saber se existe alguma maneira da fazer com o caminho fosse tipo pré-definido logo na pasta do meu software, para quando mudar de pc ele executar na mesma.

Exemplo:

Process.Start("Pasta_do_meu_programa/programa_a_executar.exe

Não sei se me fiz entender bem...

Share this post


Link to post
Share on other sites
Caça
Process.Start(Application.StartupPath & "\programa_a_executar.exe")


Pedro Martins

Não respondo a duvidas por PM

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.