@echo off
Setlocal enabledelayedexpansion
reg query HKU\S-1-5-20>nul || echo;CreateObject^("Shell.Application"^).ShellExecute "%~f0", "", "", "runas", 1 > "%temp%\getadmin.vbs" && cscript //b "%temp%\getadmin.vbs" && exit /b & del "%temp%\getadmin.vbs" /f /q>nul 2>nul
pushd "%CD%"&& CD /D "%~dp0"
set name=HKLM\SYSTEM\MountedDevices
for /f "tokens=4" %%a in ('vol c:') do set dev=%%a
FOR %%a IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
FOR /F "tokens=1,2,3 delims= " %%i IN ('reg query %name% ^| find "\%%a:"') DO (
echo reg add "%name%" /v "%%i" /t %%j /d "%%k" /f>>%dev%的盘符.bat
))
欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |