cmd脚本学习

  sre

设置开机菜单等待时间为3秒 bcdedit /timeout 3
关闭休眠(也可on开启) powercfg -h off
开启TabletPC /NoRestart /Quiet /Online /Enable-Feature /FeatureName:”TabletPCOC”
在较老的PC上强制开启Aero
reg add “HKCU\Software\Microsoft\Windows\DWM” /v Composition /t reg_dword /d 00000001 /f
reg add “HKCU\Software\Microsoft\Windows\DWM” /v CompositionPolicy /t reg_dword /d 00000002 /f
net stop uxsms
net start uxsms
配置本地连接:

IP地址:192.168.0.118
网关: 192.168.0.1
DNS: 202.96.128.86
netsh interface ip set address name=”本地连接” source=static addr=192.168.0.118 mask=255.255.255.0 gateway=192.168.0.1 1
netsh interface ip set dns name=”本地连接” source=static addr=202.96.128.86

devmgmt.msc 打开“设备管理器”
Dxdiag DirectX诊断工具

环境变量:
set PATH=%PATH%;C:\Python25

进入其他盘符:
cd /d D:\Program Files

LEAVE A COMMENT

Captcha Code