Parcker Posted May 27, 2011 at 11:51 AM Report #391398 Posted May 27, 2011 at 11:51 AM 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)
ribeiro55 Posted May 27, 2011 at 11:52 AM Report #391400 Posted May 27, 2011 at 11:52 AM 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"
Parcker Posted May 27, 2011 at 12:20 PM Author Report #391410 Posted May 27, 2011 at 12:20 PM Mesmo isto. 😁 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...
Caça Posted May 27, 2011 at 12:31 PM Report #391415 Posted May 27, 2011 at 12:31 PM Application.StartupPath Pedro Martins Não respondo a duvidas por PM
Parcker Posted May 27, 2011 at 01:17 PM Author Report #391423 Posted May 27, 2011 at 01:17 PM Application.StartupPath Não percebi..
Caça Posted May 27, 2011 at 01:27 PM Report #391425 Posted May 27, 2011 at 01:27 PM Process.Start(Application.StartupPath & "\programa_a_executar.exe") Pedro Martins Não respondo a duvidas por PM
emanuelx Posted May 28, 2011 at 03:28 PM Report #391656 Posted May 28, 2011 at 03:28 PM ou podes utilizar o shell com calma e sem stresses
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now