实用批处理文件 (IP设置.bat, 清理系统垃圾.bat, atc.)
2006-12-22 12:35
696 查看
IP设置.bat
===================
@Echo Off
#设定当前网卡“本地连接”对应的外网IP地址和地址掩码;
Netsh interface ip Set Address Name="本地连接" Source=static addr=192.168.103.195 mask=255.255.255.0
#设定网关的IP地址和寻址的权值;
Netsh interface ip Set Address Name="本地连接" gateway=192.168.103.1 gwmetric=1
#设定局域网中主DNS服务器的IP地址;
Netsh interface ip Set Dns Name="本地连接" Source=static addr=192.168.102.131
内网.bat
===================
C:\WINdows\system32\netsh.exe interface ip set address "本地连接" static 132.228.46.196 255.255.0.0 132.228.46.193 1
清除系统垃圾.bat
===================
@echo off
echo 正在清除系统垃圾文件,请稍等
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause
===================
@Echo Off
#设定当前网卡“本地连接”对应的外网IP地址和地址掩码;
Netsh interface ip Set Address Name="本地连接" Source=static addr=192.168.103.195 mask=255.255.255.0
#设定网关的IP地址和寻址的权值;
Netsh interface ip Set Address Name="本地连接" gateway=192.168.103.1 gwmetric=1
#设定局域网中主DNS服务器的IP地址;
Netsh interface ip Set Dns Name="本地连接" Source=static addr=192.168.102.131
内网.bat
===================
C:\WINdows\system32\netsh.exe interface ip set address "本地连接" static 132.228.46.196 255.255.0.0 132.228.46.193 1
清除系统垃圾.bat
===================
@echo off
echo 正在清除系统垃圾文件,请稍等
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause
相关文章推荐
- 51CTO技术圈:系统垃圾文件快速清理增强版.bat
- 用C#调用.BAT文件实现系统垃圾清理并回显结果
- Windows垃圾文件清理(批处理BAT清理垃圾文件)
- 一个清理系统垃圾文件的批处理
- 清理系统垃圾文件 请命名为:*.bat
- 是一个清理系统垃圾文件并关机的bat文件
- 清理C盘系统垃圾文件-批处理方式
- 系统垃圾清理的批处理文件
- 更改IP 脚本(自动获取和手动设置多个IP),将内容拷贝到记事本另存为bat批处理文件
- 制作清理系统垃圾的批处理文件
- 系统加速批处理文件:清理无用共享、内存及系统垃圾
- 通过批处理文件进行系统垃圾的清理
- 清除C盘系统垃圾和缓存的批处理bat文件
- 正在清理系统垃圾文件的批处理文件!
- java调用bat文件判断系统是32还是64位,并设置环境变量
- BAT清理IE缓存和系统垃圾
- Windows系统垃圾清理.bat
- 关于清理电脑系统垃圾的batch文件
- WIN 7 系统垃圾清理.bat
- 清除系统垃圾文件.bat