|
我用BARTPE很容易实现自动启动网络
@echo off
这是我在STARTUP.CMD中的部份内容
echo 1. change screen resolution to 800x600
%systemDrive%\programs\NU2MENU\setres.exe h800 v600
echo 2. PE network auto Config
%windir%\system32\penetcfg.exe /UseProfile
这就是自动启动网络DHCP客户端的工具
PENETCFG.INI (PENETCFG相关设置文件)
[General]
AutoStartNet=Yes
PromptForProfile=No
ShowGUI=No
[NetProfiles]
Dynamic IP Address (DHCP)=penetcfg-dhcp.ini
Static IP Address (Manual)=penetcfg-static.ini
Custom from A:\=a:\penetcfg.ini
Custom from C:\=c:\penetcfg.ini
[NetAdapter1]
EnableDHCP=Yes
UseStaticGateway=No
UseStaticDNS=No
UseStaticWINS=No
IPAddress=
SubnetMask=
DefaultGateway=
DNSServer=
试一下
[ 本帖最后由 tintinbt 于 2007-11-22 11:59 AM 编辑 ] |
|