- ·上一篇文章:以MB为单位显示各个分区的剩余空间(批处理)
- ·下一篇文章:身份证查询的批处理程序
- ·百度中搜索更多的关于“网吧客户机预留批处理维护通道”相关内容
- ·谷歌中搜索更多的关于“网吧客户机预留批处理维护通道”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
网吧客户机预留批处理维护通道
@echo off&title DOS资源站 www.cmdos.net
title 客户机管理通道 %date%]
:only
cls
color 1f
echo._______________________________________________________________________
echo. 1 本批处理会自动帮您设置好客户端的预留通道 *
echo. 2 会在注册表添加开机启动通道。作用是连接服务器。不影响客户机操作 *
echo. 3 本批处理不会对系统有任何危害和损伤 *
echo. 4 如果您同意就请按y键。不同意。按任意键退出。 *
echo. 5 【 %date% 】 *
echo._______________________________________________________________________
set /p a=同意请输入y不同意按任意键盘退出:
if "%a%"=="" goto noy
if %a% neq y goto noy
:start
echo.服务器文件路径 例: \\10.0.0.247\bat$\autoup.bat
set /p ServerIP=请输入您服务器的共享文件路径:
if "%ServerIP%"=="" goto ip
:s
set /p 秒=请输入需要延时的时间(单位是秒):
if "%秒%"=="" goto 0
if %秒% LEQ 0 goto 0
echo.__________________________________________
set systemURL=%windir%\system32
%systemroot%\system32\attrib -s -h -r %systemURL%\autoup.vbs
del %systemURL%\autoup.vbs
echo 正在生成通道......
ping -n 2 127.1 >nul
echo on error resume next >%systemURL%\autoup.vbs
echo set shell=createobject("wscript.shell") >>%systemURL%\autoup.vbs
echo wscript.sleep 1000*%秒% >>%systemURL%\autoup.vbs
echo shell.run "%ServerIP% /start",0 >>%systemURL%\autoup.vbs
ping -n 3 127.1 >nul
%systemroot%\system32\attrib +s +h +r %systemURL%\autoup.vbs
echo 通道完成...开始注册通道.......
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "autoup" /d autoup.vbs /f
echo.___________________________________________________________________
echo.
echo 客户端操作已经全部完成....重启后生效....现在重启请按 r 按其他键退出
set /p shutdown=输入您的选择:
echo.___________________________________________________________________
if %shutdown% EQU r goto shd
del *.bat
exit
:shd
shutdown -r -t 0
del *.bat
exit
:0
if exist %systemURL%\秒.vbs del %systemURL%\秒.vbs
echo MSGBox "输入错误,时间不能为%秒%,建议延时的时间是 5 秒--10 秒之间比较合适",11,"警告:" >%systemURL%\秒.vbs
Start %systemURL%\秒.vbs
goto s
:ip
if exist %systemURL%\IP.vbs del %systemURL%\IP.vbs
echo MSGBox "输入错误,共享文件路径不能为空,请重新输入",24,"警告:" >%systemURL%\IP.vbs
Start %systemURL%\IP.vbs
goto start
:noy
if exist %systemURL%\IP.vbs del %systemURL%\同意.vbs
echo MSGBox "您必须同意才能继续使用,如果您不同意。请直接关闭窗口",24,"警告:" >%systemURL%\同意.vbs
Start %systemURL%\同意.vbs
goto only

