本帖最后由 apang 于 2014-9-3 18:16 编辑
- @echo off
- set "key=HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters"
- for /f "tokens=1,2*" %%a in ('reg query "%key%"') do (
- if /i "%%a"=="xbq" set "v=\0%%c\0"
- )
- set "v=%v:\0browser\0=\0%"
- reg add "%key%" /v xbq /t REG_MULTI_SZ /d "%v:~2,-2%" /f
- pause
复制代码
|