reboot.ats
来自「Script C被设计成一种解释执行的、C语言风格的脚本语言。它用来完成bat批」· ATS 代码 · 共 38 行
ATS
38 行
#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 + =
减小字号Ctrl + -
显示快捷键?