You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
405 B

1 year ago
#include <stdio.h>
#include <stdlib.h>
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");
}

Powered by Informatica FP.