@echo off @reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault" /va /f @del "%USERPROFILE%My DocumentsDefault.rdp" /a @exit
/va 删除项下面所有键值 /f不提示 /a 删除隐藏文件