Vota por nosotros en el ranking web que participamos

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Octubre 07, 2008, 03:06:38
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Carbide C/C#/C++  |  Tema: Ejecutar un archivo desde un programa 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Ejecutar un archivo desde un programa  (Leído 521 veces)
Desfase
Visitante
« en: ſeptiembre 12, 2005, 05:46:56 »

Hola, buenas, ke funcion utilizo para ejecutar un archivo?
En línea
codelogman
Visitante
« Respuesta #1 en: ſeptiembre 14, 2005, 05:54:29 »

en el viejito c++ de borland usas exec, para c spawn

aqui un ejemplo de execv



 #include <process.h>
 #include <stdio.h>
 #include <errno.h>

 int main(int argc, char *argv[])
 {
   int i;

   printf("Parametros que le quieras pasar al spawn");
   for (i=0; i < argc; i++)
     printf("[%2d] : %s\n", i, argv);

   printf("Se ejecutara un proceso externo al programa");
   execv("externo.exe", argv);

   perror("error en executable");
   exit(1);
   return 0;
 }



Saludos
En línea
Desfase
Visitante
« Respuesta #2 en: ſeptiembre 22, 2005, 02:35:27 »

En línea
codelogman
Visitante
« Respuesta #3 en: ſeptiembre 25, 2005, 01:09:37 »

Scroll up please and read the functions, the functions work for you?

yes, if A.EXE execute B.EXE when A.EXE runs, you only may suscribe B.EXE on a spawned process on background, please read the functions definition.


Best Wishes
En línea
Prosutch
Visitante
« Respuesta #4 en: ſeptiembre 25, 2005, 02:56:21 »

why are you writing in english? have you got a problem?
it's strange.I'can understand you, but other users, no.

ByTeS
En línea
codelogman
Visitante
« Respuesta #5 en: ſeptiembre 25, 2005, 03:31:02 »

Тройка лидеров в этом году по сравнению с прошлым не изменилась. Самым богатым американцем ProSuTcH?, по данным el-hacker, уже одиннадцатый раз подряд остается основатель el-hacker Билл Гейтс. По сравнению с прошлым годом его состояние увеличилось на 3 млрд. долларов...

AzRaEL
En línea
Prosutch
Visitante
« Respuesta #6 en: ſeptiembre 25, 2005, 04:28:21 »

Are you funny? je je je, 0h my dear friend...
En línea
Dark-MX
Miembro
*****
Desconectado Desconectado

Mensajes: 57


Ver Perfil Email
« Respuesta #7 en: ſeptiembre 25, 2005, 07:58:34 »

Тройка лидеров в этом году по сравнению с прошлым не изменилась. Самым богатым американцем ProSuTcH?, по данным el-hacker, уже одиннадцатый раз подряд остается основатель el-hacker Билл Гейтс. По сравнению с прошлым годом его состояние увеличилось на 3 млрд. долларов...

AzRaEL

xDDDDD por si te kejabas
En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Carbide C/C#/C++  |  Tema: Ejecutar un archivo desde un programa « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.6 | SMF © 2006-2007, Simple Machines LLC