@echo off echo. SET /P cho1=ゝ请输入IP地址: SET A=%cho1% cls echo. echo 用户名为:Administrator 可留空不输入! timeout /t 3 cls echo. SET /P cho2=ゝ请输入用户名: if "%cho2%"=="" set "cho2=administrator" SET B=%cho2% cls echo. SET /P cho3=ゝ请输入密码: SET C=%cho3% cls Net use \\%A% /user:".\%B%" "%C%" reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" > "Record.a" & Find /C "%A%" "Record.a" if %errorlevel% == 0 ( explorer.exe /n,\\%A% del Record.a exit ) else ( for /l %%i in (1,1,20) do ( reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /v url%%i >nul 2>&1 || ( reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /f /v "url%%i" /t REG_SZ /d "\\%A%" explorer.exe /n,\\%A% del Record.a exit ) ) )