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

📄 sample1.ats

📁 Script C被设计成一种解释执行的、C语言风格的脚本语言。它用来完成bat批处理无法完成
💻 ATS
字号:
//like c, haha !
function ShowDriverType(string driver)
begin
	int type = 0;
	type = GetDriveType(driver);
	if ( type==0 ) messagebox(0, "Unknown disk!", driver, 0);
	if ( type==1 ) messagebox(0, "The root directory does not exist!", driver, 0);
	if ( type==2 ) messagebox(0, "The drive can be removed from the drive", driver, 0);
	if ( type==3 ) messagebox(0, "The disk cannot be removed from the drive", driver, 0);
	if ( type==4 ) messagebox(0, "The drive is a remote (network) drive", driver, 0);
	if ( type==5 ) messagebox(0, "The drive is a CD-ROM drive", driver, 0);
	if ( type==6 ) messagebox(0, "The drive is a RAM disk", driver, 0);
end


main
begin
//	Capture("d:\1.bmp");
	MessageBeep(-1);
	ShowDriverType("a:\");
	ShowDriverType("b:\");
	ShowDriverType("c:\");
	ShowDriverType("d:\");
	ShowDriverType("e:\");
	ShowDriverType("f:\");
	ShowDriverType("g:\");
	ShowDriverType("h:\");
//	CopyFile("c:\ats\samples\sample.ats", "d:\haha.ats", 1);
end

⌨️ 快捷键说明

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