清空回收站

admin2021-05-10  367

	//清空回收站,调用winapi接口
	::Shell = raw.loadDll("Shell32.dll")
	SHEmptyRecycleBin = Shell.api("SHEmptyRecycleBin","addr(addr hwnd,string rootPath,INT flags)" )

	var emptyRecycleBin = function(hwnd=0,rootPath,flags=1){
    	return 0 == SHEmptyRecycleBin(hwnd,rootPath,flags);
	}
	emptyRecycleBin();
	mainForm.richedit.print("清空回收站");
转载请注明原文地址: http://aardio.net/read-180.html
最新回复(1)
  • snzyj4月前
    引用2
    ::Shell32.SHEmptyRecycleBin(0,,1);