Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

crazy1kill

Programa para correr .exe

Recommended Posts

crazy1kill

Bom dia pessoal,

Estou com um problema neste programa que é eu correr o programar e quando faço a selecção do ficheiro .exe que quero correr o mesmo, não corre e o programa termina.

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int opcao;opcao=0;
{
printf("Escolha o programa que deseja correr:\n");
printf("1- Solution Control Interface\n");
printf("2- Configuration Manager\n");
printf("3- Harvest\n");
printf("4- Toad\n");
printf("5- Interaction Routing Design\n");
printf("6- Keepass\n");
printf("7- Remote Desktop Manager\n");
printf("8- Sair\n");
scanf("%i", &opcao);
switch(opcao){
            case 1:
                 system("C:\\Program Files\\GCTI\\Solution Control Interface start\\sci.exe");
   break;
            case 2:
                 system("C:\\Program Files\\GCTI\\Configuration Manager\\sce.exe");
   break;
            case 3:
                 system("C:\\Program Files\\CA\\AllFusion Harvest Change Manager\\ADvantage.exe");
   break;
            case 4:
                 system("C:\\Program Files\\Quest Software\\Toad for Oracle\\TOAD.exe");
   break;
            case 5:
                 system("C:\\Program Files\\GCTI\\Interaction Routing Designer");
   break;
            case 6:
                 system("C:\\Program Files\\KeePass Password Safe 2");
   break;
            case 7:
                 system("C:\\Program Files\\Devolutions\\Remote Desktop");
   break;
            case 8:
                 printf("A desligar...!\n");
   break;
}
}
}

Que estou aqui a fazer de mal?

Obrigado pela ajuda.

Cumprimentos

Edited by pmg
GeSHi

Share this post


Link to post
Share on other sites
crazy1kill

Boas,

Essa função serve para escrever o executavel num pipe, certo?É que se for isso, não é o que estou à procura.

Cumps

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

×

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.