[ExclusionList]
;默认被排除的文件、目录。这些文件或目录不会被捕获在WIM映像内。
\$ntfs.log
\hiberfil.sys
\pagefile.sys
\System Volume Information
\RECYCLER
\Windows\CSC
[ExclusionList]这个节是否支持通配符定义,如以下格式:
; 某目录下的某类型文件
\Path1\Path2\*.TXT
; 所有的某类型文件
*.TXT
[ExclusionException]
;可以定义一个排除列表,覆盖默认的排除列表。
;当这个表不为空时,将优先使用这个列表。
[ExclusionException]节的定义应与上面[ExclusionList]的定义一致的吧?
[CompressionExclusionList]
;排除以下类型的文件在压缩序列,这些文件在WIM映像内不会被压缩。
*.mp3
*.zip
*.cab
*.rar
[CompressionExclusionList]这个节是支持通配符定义的(如上),但能否这样定义:
;某目录下的所有文件
\Path1\Path2
;目录中的某类文件
\Path1\Path2\*.png
;特定的文件
\Path1\Path2\123.png
[AlignmentList]
;定义以下文件在 64K 边界对齐,在 64K 边界对齐的任何文件,将不会被压缩。
;这个有什么作用?好象意义不大,也不明。
[AlignmentList]这个节是否也支持通配符定义?支持什么格式和法则?
原帖由 jl580650 于 2007-7-21 11:37 AM 发表
[ExclusionList]
应该不支持通配符
===================
[ExclusionException]
不支持通配符(存在的话上面的ExclusionList就无效了)
===================
[CompressionExclusionList]
某目录下的所有文件 ...
[ExclusionList]
\$ntfs.log
\hiberfil.sys
\pagefile.sys
\System Volume Information
\RECYCLER
\Windows\CSC
Create an ImageX Configuration File
ImageX is a command-line tool that enables the creation of image files for deployment in a manufacturing or corporate IT environment. You can create a configuration file (configuration_list.ini) to determine:
? Which files and folders must be excluded from the capture process when using the /capture option.
? Which folders, files, and file types must be excluded from the compression process when using the /compress option.
? Whether the .wim file aligns on a 64K boundary or the default 32K boundary.
If you name your configuration_list.ini file wimscript.ini and store it in your ImageX directory (where the ImageX.exe file is located), it will automatically run when using the /capture option (with or without the /compress option) without requiring you to use the /config option.
The /config option enables you to customize specific compression, capture, and boundary alignment actions, for each individual file and folder, within ImageX. Create configuration_list.ini by using a text editor, such as Notepad.
Creating a Configuration List
The following sections appear in the ImageX configuration list.
Section Description
[ExclusionList]
Enables you to define the files and folders to exclude from the /capture operation.
[ExclusionException]
Enables you to override the default exclusion list during the /capture operation.
[CompressionExclusionList]
Enables you to define the specific files and folders, in addition to specific file types, to exclude from the /compress operation.
Note:
You can use file or folder matching to exclude a file from compression. You can provide a full path match, or you can use wildcards (*). For example, you can use C:\WINDOWS\inf\*.pnf to match a specific type of file or C:\WINDOWS\inf\* to match an entire folder.
[AlignmentList]
Enables you to define specific files to align on a 64K boundary. Compression will not occur for any files aligned on a 64K boundary. If you do not list files within this section, all your files will align on a 32K boundary.
Note:
Security may occasionally use this section for pattern-matching purposes.
Default Exclusion List
By default, ImageX will exclude the following files.
[ExclusionList]
\$ntfs.log
\hiberfil.sys
\pagefile.sys
\System Volume Information
\RECYCLER
\Windows\CSC
[CompressionExclusionList]
*.mp3
*.zip
*.cab
\WINDOWS\inf\*.pnf
Exclusion List Guidelines
? You can only use wildcards in the last component in a file path that does not begin with a preceding back slash. For example,
myfolder\*.txt
? You can use a preceding backward slash to limit file- and directory-matching relative to the root directory. For example, if you capture the "c:\" drive with the previous exclusion list,
\myfolder
\folder\subfolder
ImageX will exclude the following files and directories.
c:\myfolder
c:\folder\subfolder
However, ImageX will not exclude files or directories contained in the following example.
c:\main\myfolder
c:\data\folder\subfolder
? You can override the default exclusion list by using the [ExclusionException] section. For example,
[ExclusionException]
\pagefile.sys
\System Volume Information
? If an explicit [ExclusionException] section is provided in the WIM configuration file, it will always take precedence over the [Exclusion List] section.
? You cannot override the default compression exclusion list by using the [ExclusionException] section.
Using the Configuration File
If you create a custom-named configuration file and store it outside of the ImageX directory, you can use ImageX to run the file. At a command prompt, open the ImageX directory. For example,
imagex /config c:\imaging\<configuration_list>.ini /capture d: d:\imaging\data.wim "Drive D"
-OR-
imagex /config c:\imaging\<configuration_list>.ini /append d: d:\imaging\data.wim "Drive D"
where c:\imaging\<configuration_list>.ini provides the complete directory location for the configuration file. You must use either the /capture option to create a new .wim file or the /append option to append an existing .wim file.
原帖由 jl580650 于 2007-7-21 01:53 PM 发表
:o 不就是我说的意思嘛
刚才用imagex试了一下,竟然没成功,定义文件放在d:\a.ini
[CompressionExclusionList]
"\Program Files"
\WINDOWS
对c:捕获,竟然没有排除掉
难道[CompressionExclusionList]不可 ...
原帖由 jl580650 于 2007-7-21 02:26 PM 发表
Path1\Path2
会排除整个path2目录,[ExclusionList]中尝试过,是成功的
Path1\Path2\*
看说明貌似只能用在排除压缩类型[CompressionExclusionList]
[ExclusionList]中尝试过,是失败的
Path1\Path2\*.Ex ...
原帖由 jl580650 于 2007-7-21 02:44 PM 发表
Path1\Path2
\Path1\Path2
\Path1\Path2\*.txt
\Path1\Path2\*
以上都可以
Path1\Path2\*
Path1\Path2\*.txt
不可以
见鬼了,和上面的翻译反过来了
要不老九你也测试下:Q
所有排除都放在[ExclusionLi ...
Path1\Path2\*.Ext
排除Path1\Path2\下所有*.Ext
[ExclusionList]中尝试过,是成功的
===============
开头带\只会排除捕获目录下的
不带\,会排除捕获目录下以及其子目录下所有匹配的
已经测试过了
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |