会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朝露绿客联盟
...从明天起,做一个幸福的人。 ...喂马,劈材,周游世界。 ...从明天起,关心粮食和蔬菜。 ...我有一所房子,面朝大海春暖花开。
CnBlogs
Home
New Post
Admin
实用批处理文件 (IP设置.bat, 清理系统垃圾.bat, atc.)
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
posted @
2006-12-22 12:35
blueKnight
Views(
4957
) Comments(
3
)
Edit
收藏
举报
刷新页面
返回顶部
公告