@echo off if not exist "%~dp0RDPWInst.exe" goto :error "%~dp0RDPWInst" -i -o if exist %~dp0rdpwrap.ini goto morepatchwin10 :donemorepatch echo ______________________________________________________________ echo. echo You can check RDP functionality with RDPCheck program. echo Also you can configure advanced settings with RDPConf program. echo. goto :anykey :error echo [-] Installer executable not found. echo Please extract all files from the downloaded package or check your anti-virus. :anykey pause :morepatchwin10 echo patching for win10 timeout 1>nul copy "%~dp0rdpwrap.ini" "C:\Program Files\RDP Wrapper" sc stop TermService sc start TermService cls goto :donemorepatch