|
不太懂 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. |
|