本帖最后由 pcl_test 于 2016-3-26 15:30 编辑
- @Echo off
- Title 判断无盘是否为超级用户脚本。
-
- FOR /F "tokens=1,2 delims=x" %%i in ('Reg Query HKLM\SYSTEM\CurrentControlSet\iCafe8 /v Admin') do Set SuperAdmin=%%j
- If %SuperAdmin%==0 (
- Call :普通用户
- ) else (
- Call :超级用户
- )
-
- Goto :eof
- :普通用户
- if "%computername%"=="HOMEPC" (goto 1) else (goto 2)
-
- :1
- ECHO yes
- Exit
-
- :2
- ECHO no
- Exit
-
- pause 1>nul
- Goto :eof
-
- Goto :eof
- :超级用户
- START C:\Windows\r_server.exe /pass:888
- Exit
- pause 1>nul
- Goto :eof
复制代码
|