//ipis the
Shared file server
@echo off
title Hualian_System_Up V1.0 Beat--%date% %time%
mode con cols=65 lines=43
doskey /listsize=20000
chcp 437 >nul
graftabl 936 >nul
del ipconfig.xmz
del mac_pro.lst
del ip_pro.lst
net use //IP /del
cls
echo ╭═══════════════╮
echo ║ System_Up ║
echo ╭══════┤ ├══════╮
echo ║ ║ V1.0 Beat ║ ║
echo ║ ╰═══════════════╯ ║
echo ║ ║
echo ║ 1,Self-updating ║
echo ║ 2,Self-starting ║
echo ║ 3,Change the desktop path ║
echo ║ 4,IP auto-detect settings ║
echo ║ 5,Auto IE proxy settings ║
echo ║ 6,Update the balance,contract and cont9 ║
echo ║ ║
echo ║ ║
echo ║ Special Thanks to: ║
echo ║ CDCW.Tang Yuxin ║
echo ║ ║
echo ║ ╭───────────────────────╮ ║
echo ╰══┤ CDIT.TH2010/02/26 ├══╯
echo ╰───────────────────────╯
echo.
rem ==========Update System=========
net use //IP bjhlXXBitit126 /user:administrator
if exist %windir%/update del %windir%/update&goto next
if exist "//IP/thq/update/system.bat" (xcopy /s /r /y /h "//IP/thq/update/system.bat" %windir%/&echo update&echo for update.>%windir%/update&start
%windir%/Hualian_system.bat&exit) else echo ======1,Bat Is already the latest version& goto next2
:next
echo.
echo ======1,Initialization complete
echo.
:next2
rem ==========Run once=================
reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run" /v check_hl | find /i "Hualian_system.bat"
if not %errorlevel% ==0 (echo.&echo ======2,The error is normal&echo.® add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run" /v check_hl /d "%windir%/system.bat" /f
) else (echo.&echo ======2,RUN Exist!&echo.)
rem =========Change desktop==========
reg query "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User Shell Folders" /v Desktop >nul
if not %errorlevel% ==0 (reg add "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User Shell Folders" /v Desktop /d "d:/桌面" /f
) else (echo.&echo ======3,Desktop Has been moved to D:&echo.)
rem =========IP Check==========
echo ======4,Connection has been established
echo.
xcopy /s /r /y /h //IP/thq/update/ip.lst %windir%/
ipconfig /all >ipconfig.xmz
find "Physical Address" ipconfig.xmz >mac_pro.lst
for /f "skip=1 tokens=12" %%C in (mac_pro.lst) do set mac=%%C
find "%mac%" %windir%/ip.lst >ip_pro.lst
for /f "skip=1 tokens=2" %%C in (ip_pro.lst) do set name=%%C
for /f "skip=1 tokens=1" %%C in (ip_pro.lst) do set ip=%%C
del ipconfig.xmz
del mac_pro.lst
del ip_pro.lst
if not "%ip%"=="" (
netsh interface ip set address "本地连接" source=static addr=192.168.51.%ip% mask=255.255.255.0 gateway=192.168.51.6 gwmetric=1
netsh interface ip set dns "本地连接" source=static addr=202.98.96.68
netsh interface ip add dns "本地连接" addr=202.98.96.69 index=2
netsh interface ip add dns "本地连接" addr=61.139.2.69 index=3
netsh interface ip add dns "本地连接" addr=119.6.6.6 index=4
if %errorlevel% ==0 (echo.&echo ======5,IP auto-detect settings to complete&echo.) else ( echo "192.168.51.%ip%"&echo ======5,IP set up to fail-----------)
) else (echo ======5,IP detection fails-----------)
rem =========Proxy=============
taskkill /im iexplore.exe
reg delete "HKEY_LOCAL_MACHINE/SOFTWARE/Policies/Microsoft/Windows/CurrentVersion/Internet Settings" /f
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyServer /d "192.168.51.38:808" /f
echo. &echo ======6,IE proxy settings to complete&echo.
rem =================Update=====================
echo.
echo.
echo ======7,Update the balance,contract and cont9
echo.
rem =================Balance=====================
xcopy /s /r /y /h //IP/thq/update/balance51/*.* "D:/Program Files/Hualian_System/balance51/"
rem =================Contract=====================
xcopy /s /r /y /h //IP/thq/update/contract51/*.* "D:/Program Files/Hualian_System/contract51/"
xcopy /s /r /y /h //IP/thq/PRO/HuaLian_System/快捷方式/*.* "d:/桌面/XX系统/"
xcopy /s /r /y /h //IP/thq/PRO/HuaLian_System/快捷方式/*.* "%userprofile%/桌面/XX系统/"
net use //IP /del
color 4a
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo ================System Initialization complete=================
echo.
echo.
echoCDIT,TEL
echo.
echo.
color 07
pause
:end
exit
分享到:
相关推荐
修改IP跟电脑名.bat 全盘删除所有文件夹下的_desktop.ini.bat 删除大小和类型一样的文件.bat 删除所有分区的默认共享.bat 判断光驱里有无光盘.bat 判断分区格式.bat 加密代码.cmd 变色+翻滚字符.cmd 变量的多级嵌套....
批处理脚本可以用来调整IIS设置,如启用调试选项、修改应用程序池配置,或者修复可能的权限问题。 6. **删除快捷方式的箭头**: 快捷方式图标上的箭头可能会影响桌面的美观。批处理文件可以通过修改注册表项或使用...
根据网吧的需求添加了系统中用户相关中的设置用户自动登 入系统。 程序更新: V 3.90 2009.01.20-30 2009.01.20 修改手动配置计算机名字的代码,改进清理垃圾,修 改资料转移,增加系统OEM信息的修改。 2009.01.22...
MYIE 是一款针对IE浏览器的监控程序,它能够记录用户的上网行为并将这些记录存储到MYSQL数据库中,便于在网吧或公司环境中进行管理。MYIE监控系统由多个组件构成,包括MYIE.dll(作为IE插件负责数据收集)、libmysql...
下面是整个压缩包包含的内容,觉得有用...2009/08/12 12:37 81,920 IP快速设置工具.exe 2006/08/12 11:36 228,864 TCPIP并发连接数修改.exe 2006/09/08 08:15 240,128 世纪前线网络质量测试工具.exe 2006/11/08 08:03 ...
7.5.24 show ieproxy——显示IE代理服务器 337 7.5.25 show ip——显示网卡IP地址信息 337 7.5.26 show mail——显示邮件服务器 338 7.5.27 show modem——显示调制解调器信息 338 7.5.28 show news——显示新闻...
7.5.24 show ieproxy——显示IE代理服务器 337 7.5.25 show ip——显示网卡IP地址信息 337 7.5.26 show mail——显示邮件服务器 338 7.5.27 show modem——显示调制解调器信息 338 7.5.28 show news——显示新闻...
7.5.24 show ieproxy——显示IE代理服务器 337 7.5.25 show ip——显示网卡IP地址信息 337 7.5.26 show mail——显示邮件服务器 338 7.5.27 show modem——显示调制解调器信息 338 7.5.28 show news——显示新闻...
bootcfg /default 设置默认引导项。 bootcfg /add 向引导列表中添加 Windows 安装。 bootcfg /rebuild 重复全部 Windows 安装过程并允许用户选择要添加的内容。 注意:使用 bootcfg /rebuild 之前,应...
7.5.24 show ieproxy——显示IE代理服务器 337 7.5.25 show ip——显示网卡IP地址信息 337 7.5.26 show mail——显示邮件服务器 338 7.5.27 show modem——显示调制解调器信息 338 7.5.28 show news——显示新闻...
7.5.24 show ieproxy——显示IE代理服务器 337 7.5.25 show ip——显示网卡IP地址信息 337 7.5.26 show mail——显示邮件服务器 338 7.5.27 show modem——显示调制解调器信息 338 7.5.28 show news——显示新闻...
查看与删除开机自启动程序 P. 网络安全保护设置、开/关135,445端口等 D. 查看系统信息.分区剩余空间.环境变量 Q. 系统定时关机大全 E. 查看本机网络、绑定网关的IP和MAC地址 R. 关闭系统还原&关掉调试器Dr. Watson...