@echo off
color 2f
mode con cols=50 lines=30
title OKShare 【制作:常州辉煌网络】
ver | findstr “5.”>nul || set bulid=nt6 && goto sc_yhbl
set bulid=nt5
:sc_yhbl
reg query “HKCU\Environment” /v temp >nul 2>nul||set “usertemp=%USERPROFILE%” && goto sc_top
set usertemp=%temp%
:sc_top
cls
del /q %temp%\info.txt>nul 2>nul
:sc_menu
echo.&echo.&echo.
echo 局域网共享一键修复 17.9.11
echo.
echo --------------------------------------------
echo.&echo.&echo.
echo 1、查看网络信息
echo.
echo 2、简单共享(无密码)
echo.
echo 3、密码共享
echo.
echo 4、共享和权限设置
echo.
echo 5、设置权限指南(图文)
echo.
echo 6、打印机共享指南(图文)
echo.
echo 7、软件更新与反馈
echo.&echo.&echo.&echo.&echo.
set select=
set str1=1234567
set /p select= 输入数字,按回车:
if not defined select goto sc_wrong
echo %select%|findstr “[%str1%]”>nul||goto sc_wrong
if %select%==1 (goto sc_info)
if %select%==2 (goto sc_zd)
if %select%3 (goto sc_sd)
if %select%4 (goto sc_gl)
if %select%5 (goto sc_help)
if %select%6 (goto sc_print)
if %select%7 (goto sc_update)
:sc_wrong
mshta vbscript:msgbox(“只能输入1-7的数字”,64,“提示”)(window.close)
goto sc_top
:sc_info
cls
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 正在处理信息…
if “%bulid%”“nt6” goto sc_nt6
:sc_nt5
(echo.
echo.)>>%usertemp%info.txt
ping www.baidu.com -n 1 >nul || echo 互联网状态: [ 离线 ]>>%usertemp%info.txt && goto sc_ver_nt5
echo 互联网状态: [ 在线 ]>>%usertemp%info.txt
:sc_ver_nt5
(echo ----------------------------------------------------------
echo.)>>%usertemp%info.txt
for /f "skip=1 tokens=2-4 delims=, " %%a in (‘wmic os get caption’) do (
if exist %windir%\SysWOW64 echo 系统版本: %%a %%b %%c 64位>>%usertemp%info.txt & goto sc_ver_nt5_next
echo 系统版本: %%a %%b %%c 32位>>%usertemp%info.txt
)
:sc_ver_nt5_next
(echo.
echo 计算机名: %COMPUTERNAME%
echo.)>>%usertemp%info.txt
for /f "tokens=2 delims= " %%a in (‘net config workstation^|findstr /c:“工作站域”’) do echo 工作组: %%a>>%usertemp%info.txt & goto sc_info_nt5
:sc_info_nt5
(echo.
echo 当前用户: %USERNAME%
echo.)>>%usertemp%info.txt
for /f “delims=” %%a in (‘date /t’) do echo 本机日期: %%a>>%usertemp%info.txt
echo.>>%usertemp%info.txt
for /f “delims=” %%a in (‘time /t’) do echo 本机时间: %%a>>%usertemp%info.txt
echo ---------------------------------------------------------->>%usertemp%info.txt
goto sc_info_more
:sc_nt6
(echo.
echo
一键修复共享服务器权限问题
![](https://img-home.csdnimg.cn/images/20240711042549.png)