Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes847downloads
Once.txt41 linesDownload Raw Back to AcctExample
1 2//Place this file in /Home and change3//anything you want.4 5//This file is executed by the6//first terminal window upon start-up.7//See Once and Home Files.8 9//  Type("::/Doc/Customize.DD");10 11U0 Tmp()12{13  OnceExe;14  switch (sys_boot_src.u16[0]) {15    case BOOT_SRC_DVD:16      "\nIf you answer 'No' you can play with\n"17            "the live CD without installing.\n\n"18            "Install onto hard drive ";19      if (YorN) {20        DocBottom;21        if (RunFile("::/Misc/OSInstall",,FALSE)) {22          Del("C:/Home/DoDistro.HC.Z");23          Del("D:/Home/DoDistro.HC.Z");24          OnceDrv('C',"\"\n\nRun TOSStaffIns;\n\n\n\";");25          OnceDrv('D',""); //This command uses cached Registry file.26          if (PressAKey!=CH_SHIFT_ESC)27            Reboot; //Too dangerous for amateurs until reboot.28        }29      }30      break;31  }32  if (FileFind("D:/Tmp/Logs/access.log")) {33    In("\n\n%C",CH_ESC);34    RunFile("::/Demo/WebLogDemo/WebLogRep",,35          "D:/Tmp/Logs/*.log","D:/Home/WebLogRep.DD");36    Del("D:/Tmp/Logs/*.log");37  }38}39 40Tmp;41