commit a82b536d9226c065a50bd1e6dc390036cb8afb30 Author: juanjo Date: Fri Sep 29 12:37:24 2023 +0200 proceso1 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