【 tulaoshi.com - 编程语言 】
#include "conio.h"
#include "string.h"
#include "stdio.h"void error()
{window(12,10,68,10);
textbackground(15);
textcolor(132);
clrscr();
cprintf("file or system error! you can't enter the system!!!");
while(1); /*若有错误不能通过程序*/
}void look()
{FILE *fauto,*fbak;
char *pass="c:windowspassWord.exe"; /*本程序的位置*/
char a[25],ch;
char *au="autoexec.bat",*bname="hecfback.^^^"; /*bname 是autoexec.bat 的备份*/
setdisk(2); /*set currently disk c:*/
chdir(""); /*set currently Directory */
fauto=fopen(au,"r+");
if (fauto==NULL)
{fauto=fopen(au,"w+");
if (fauto==NULL) error();}
fread(a,23,1,fauto); /*读取autoexec.bat前23各字符*/
a[23]='