zoukankan      html  css  js  c++  java
  • mstsc痕迹清理

    rem clear all
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault" /va /f
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientLocalDevices" /va /f
    reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientServers" /f
    (ver | find "5.1") && (del /a /f /q "%USERPROFILE%My DocumentsDefault.rdp") || (del /a /f /q "%USERPROFILE%DocumentsDefault.rdp")
    
    rem backup
    mkdir cache
    attrib +h +s cache
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault" cacheDefault.reg
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientLocalDevices" cacheLocalDevices.reg
    reg export "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientServers" cacheServers.reg
    (ver | find "5.1") && (xcopy /c /q /y /h "%USERPROFILE%My DocumentsDefault.rdp" cacheDefault.rdp) || (xcopy /c /q /y /h "%USERPROFILE%DocumentsDefault.rdp" cacheDefault.rdp)
    
    rem restore
    reg import cacheDefault.reg
    reg import cacheLocalDevices.reg
    reg import cacheServers.reg
    (ver | find "5.1") && (xcopy /c /q /y /h cacheDefault.rdp "%USERPROFILE%My DocumentsDefault.rdp") || (xcopy /c /q /y /h cacheDefault.rdp "%USERPROFILE%DocumentsDefault.rdp")
    rmdir /s /q cache
    
  • 相关阅读:
    mybatis之关联关系映射
    spa项目开发之tab页实现
    mybatis整合redis实现二级缓存
    mybatis整合spring
    mybatis动态sql和分页
    Mybatis入门
    使用java代码操作redis
    Redis安装
    IDEA的安装和使用
    Linux入门——安装jdk、tomcat、MySQL以及项目部署
  • 原文地址:https://www.cnblogs.com/Yang34/p/14183524.html
Copyright © 2011-2022 走看看