清空回收站

admin2021-05-10  2.5K+

	//清空回收站,调用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("清空回收站");
转载请注明原文地址: https://aardio.net/read-180.html
最新回复(1)
  • snzyj2021-5-27
    引用2
    ::Shell32.SHEmptyRecycleBin(0,,1);
操作系统(sys,win)
操作系统(sys,win)