⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reboot.ats

📁 Script C被设计成一种解释执行的、C语言风格的脚本语言。它用来完成bat批处理无法完成
💻 ATS
字号:
#include "reboot.txt"

main
begin
//this sample reboot 3 times
//

  int i;

//create an ini file (if file exists, do nothing)
  IniFile_Create("c:\bootc.ini");

//get this data from ini file "c:\bootc.ini":
//...
//[data]
//i=242
//...
  i = IniFile_GetInt("c:\bootc.ini", "data", "i", 0);
//  MessageBox(0,"hello from reboot sample", " ",0);
  i = i+10;
//save the data i to file
  IniFile_SetInt("c:\bootc.ini", "data", "i", i);

//Reboot(string Program, int Times, string IniFileName)
//
//Program: when reboot, run this application
//Times:   run 3 times(reboot 2 times)
//IniFileName: save application data to this file
  Reboot("c:\ats\samples\reboot.atb", 3, "c:\bootc.ini");

//if your computer need enter username ,password and/or domain, please
//use the tool "c:\ats\tools\login.exe", usage:
//push start button, select "Run...", input:
//    c:\ats\tools\login username password domain
//or
//    c:\ats\tools\login username password
//if you neen't input domain when login
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -