From a82b536d9226c065a50bd1e6dc390036cb8afb30 Mon Sep 17 00:00:00 2001 From: juanjo Date: Fri, 29 Sep 2023 12:37:24 +0200 Subject: [PATCH] proceso1 --- proceso1.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 proceso1.c diff --git a/proceso1.c b/proceso1.c new file mode 100644 index 0000000..60657b9 --- /dev/null +++ b/proceso1.c @@ -0,0 +1,11 @@ +#include +#include +void main() { + printf("Ejemplo de uso de system():"); + printf("\n\tListado del directorio actual y envio a un fichero:"); + printf("%d",system("ls > ficherosalida.txt")); + printf("\n\tAbrimos con nano el fichero ..."); + printf("%d",system("nano ficherosalida.txt")); + printf("\n\tEste comando es erroneo: %d",system("msword")); + printf("\nFin del programa"); +} \ No newline at end of file