无忧启动论坛

标题: 请教 如何用penetcfg初始化网络 [打印本页]

作者: neo4026    时间: 2007-11-23 19:57
标题: 请教 如何用penetcfg初始化网络
如题 在netpart解压了和网卡装好的前提下,且已写好penetcfg的配置文件,有什么参数可以让penetcfg自动初始化网络?
作者: nbhgl    时间: 2007-11-23 20:18
[General]
AutoStartNet     = Yes
PromptForProfile = NO
ShowGUI          = NO

楼上兄弟可以在911的PE里用PENetCfg启动网络吗?
作者: chnhhwz    时间: 2007-11-23 20:25
毛桃的PE好像不能用PENetCfg启动网络
我试过netpart解压到SYS里 用DEVI命令安装网卡驱动 再使用PENetCfg
提示不能启动网络
不知道还要改哪里
作者: nbhgl    时间: 2007-11-23 20:42
我总想把毛桃的PE内核里的网络组件去干净了。。。

从服务里可以看到安装了很多网络组件。。。都没有外置。。。
作者: neo4026    时间: 2007-11-23 22:42
没试过911 但0305可以
不是解到sys 是windows
我自己的2003pe也试过可以
作者: krell    时间: 2007-11-23 22:50
不太懂 PENetCfg,正在了解,呵呵!

今天早上刚刚看到的,不知对楼主是否有帮助。

PENetCfg [/UseProfile[:profile_name]]

- If no parameters were passed, PENetCfg will run as usual without using any network profiles.

- /UseProfile[:profile_name] loads the network profile with the name "profile_name" to use in automating network settings.
If the network profile is located in the same folder as PENetCfg, you can provide only the file name without any path, otherwise you must provide the full path and put it in quotes if it contains spaces.

if no profile name is provided, PENetCfg will search in the same folder for a file with same name as PENetCfg but with the extension ".ini" and use it as the network profile if found. So if the executable file that started PENetCfg is named "PENetCfg.exe", PENetCfg will search for "PENetCfg.ini" in the same folder to use as the network profile.

Examples:
PENetCfg /UseProfile
PENetCfg /UseProfile:Work.ini
PENetCfg -UseProfile:"C:\Net Profiles\Work.ini"
PENetCfg -UseProfile:%SystemRoot%\System32\Work.ini

Very Important note:
Network profiles will be used only when PENetCfg is going to start network support.
If network support is already started, no network profiles are used even if you explicitly provide it via the command line parameter.
作者: krell    时间: 2007-11-23 23:06
来自以下网址:
http://www.911cd.net/forums//index.php?showtopic=20686
作者: chnhhwz    时间: 2007-11-23 23:40
毛桃PE的windows目录 就是WXPE目录吗?
我以前是解压到SYSTEM32目录里的


原帖由 neo4026 于 2007-11-23 10:42 PM 发表
没试过911 但0305可以
不是解到sys 是windows
我自己的2003pe也试过可以

作者: neo4026    时间: 2007-11-23 23:47
对 是WXPE
见RAR的脚本
还有 outer base和outer part也要内置(system32)
作者: chnhhwz    时间: 2007-11-24 00:08
有什么办法让PE启动过程中静默运行penetcfg?

penetcfg运行完毕后会跳出一个窗口要求设置IP和DNS
有什么办法让他不出现?
作者: krell    时间: 2007-11-24 01:58
原帖由 chnhhwz 于 2007-11-24 12:08 AM 发表
有什么办法让PE启动过程中静默运行penetcfg?

penetcfg运行完毕后会跳出一个窗口要求设置IP和DNS
有什么办法让他不出现?


不是有参数吗,不可以用吗?
最新 v2.32 版本,http://www.geocities.com/pierremounir/

+ Entry: ShowGUI
This entry gives you the option to show the main window of PENEtCfg or not.
+ Value: {Yes|No}
- Yes: makes PENetCfg show its main window after starting network support.
- No: makes PENetCfg quit after starting network support.
+ Default: Yes
作者: neo4026    时间: 2007-11-24 07:14
谢谢krell兄弟了
作者: chnhhwz    时间: 2007-11-24 10:04
也就是说
使用这样的命令就可以静默运行了:
EXEC !PENETCFG.EXE +Value:no
作者: chnhhwz    时间: 2007-11-24 10:06
个人认为
如果你要在PE里使用网络
网络组件最好还是内置 只需要把驱动包外置就可以了
组件外置 启动网络时会有复制到SYS的动作 会慢很多的


原帖由 nbhgl 于 2007-11-23 08:42 PM 发表
我总想把毛桃的PE内核里的网络组件去干净了。。。

从服务里可以看到安装了很多网络组件。。。都没有外置。。。

作者: krell    时间: 2007-11-24 14:25
原帖由 chnhhwz 于 2007-11-24 10:04 AM 发表
也就是说
使用这样的命令就可以静默运行了:
EXEC !PENETCFG.EXE +Value:no


狂晕!
不过也怪我没有表述清楚,这个不是命令行参数,是 Ini 配置文件里面的参数。

EXEC !PENETCFG.EXE /UseProfile
(不知带参数是否这样写,俺还没有详细读过 PECMD 的说明)

然后在 PENETCFG.Ini 文件里面设置。
[General]
ShowGUI          = No

[ 本帖最后由 krell 于 2007-11-24 02:27 PM 编辑 ]
作者: chnhhwz    时间: 2007-11-24 21:15
哈  
多谢兄弟
回家就去试试




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3