aardio 文档
aardio 范例: 清除远程桌面连接记录
//清除远程桌面连接记录
import win.reg;
var reg = win.reg("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Terminal Server Client\Default")
for(name,value,t in reg.eachValue()) {
if(string.startWith(name,"MRU")){
reg.delValue(name)
}
}
var reg = win.reg("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Terminal Server Client\Servers")
for(keyName,writeTime in reg.eachKey() ){
reg.delKey(keyName)
}
io.remove(io.getSpecial(0x5/*_CSIDL_MYDOCUMENTS*/,"Default.rdp"))
import win.dlg.message;
win.dlg.message().ok("已清除远程桌面连接记录")
Markdown 格式