|
6#
楼主 |
发表于 2007-6-19 20:49:06
|
只看该作者
谢谢,我做了些修改,不知这样在你那里运行取出的是不是S-1-5-21...
@echo off
for /f %%i in ('reg query "hku"^|findstr /c:"S-1-5-21"') do set reg=%%i
set reg=%reg:~11,44%
echo %reg%
pause>nul
或是
@echo off
for /f %%i in ('reg query "hku" ^| findstr "S-1-5-21-.*_Classes"') do set reg=%%i
set reg=%reg:~11,44%
echo %reg%
pause>nul
[ 本帖最后由 kidzgy 于 2007-6-19 08:51 PM 编辑 ] |
|