Ver Mensaje Individual
  #9 (permalink)  
Antiguo 05/11/2006, 09:53
pedro_cesar
 
Fecha de Ingreso: septiembre-2006
Mensajes: 328
Antigüedad: 17 años, 8 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");
}