The oscdimg command line option uses the

Time:2020-6-28

Oscdimg command line options
Updated: May 2009
Apply to: Windows 7
Oscdimg is a command-line tool for creating custom 32-bit or 64 bit versions of windows (R) PE image files (. ISO). You can then burn the. ISO file to a CD-ROM or DVD-ROM. Oscdimg supports ISO 9660, Joliet, and universal disk format (UFD) file systems.
remarks
To create a bootable CD-ROM, you must use CD burning software, which can unpack. ISO files and burn them to CD-ROM. Copying only the.Iso file to the CD-ROM will not work.
The oscdimg tool is not supported on Itanium based computers running Windows Server 2003.

Oscdimg command line options
The following command line options are available for oscdimg.
oscdimg [options] SourceLocationTargetFile
Option description
-a
Displays a summary of the allocation of files and directories.
-b location
Specifies the location of the El Torito boot sector file. You cannot use any spaces, for example, – BC: \ directory\ Etfsboot.com
-c
Specifies to use an ANSI filename instead of an OEM filename.
-d
Do not force conversion of lowercase file names to uppercase letters.
-e
This option disables floppy emulation in the El Torito catalog. This option can only be used for a single boot image and cannot be used with any multi boot switch.
-g
Use universal coordinated time (UCT) instead of local time for all documents.
-h
Includes hidden files and directories.
-j1
The Joliet Unicode filename is encoded and a DOS compliant 8.3 filename is generated in the ISO 9660 namespace. These filenames can be read by Joliet systems or traditional ISO 9660 systems, but oscdimg may change some of the filenames in the ISO 9660 namespace to comply with DOS 8.3 and / or ISO 9660 naming restrictions.
The – D, – N, and – NT options are not applied and cannot be used when using the – j 1, – J 2, or – JS options.
-j2
The Joliet Unicode filename is encoded without a standard ISO 9660 name. (Joliet operating system is required to read files from CD-ROM.)
The – D, – N, and – NT options are not applied and cannot be used when using the – j 1, – J 2, or – JS options.
-js
Override the default text file for the – J2 option, for example, – JSC:\ Readme.txt
The – D, – N, and – NT options are not applied and cannot be used when using the – j 1, – J 2, or – JS options.
-k
The image is created even if it cannot open some source files.
-l labelname
Specifies the volume label. Spaces cannot be used between L and labelname.
For example, – lmylabel
-m
Ignore the maximum size limit for the image.
-maxsize: limit
The default maximum size of the overlay image. The default size is a 74 minute CD, unless UDF is used, in which case there is no maximum size. The limit value is specified in megabytes (MB). For example- maxsize:4096 The image can be limited to 4096 MB.
-The M option cannot be used with this option.
-n
Long file names are allowed.
-nt
Allows long filenames compatible with Windows NT 3.51.
-o
MD5 hash algorithm is used to compare files to encode duplicate files only once, so as to optimize storage.
-oc
Optimize storage by using binary comparisons of each file to encode duplicate files only once. This option is slower than – O.
-oi
Optimize storage by encoding duplicate files only once. The diamond compression timestamp is ignored when comparing files.
-os
Optimize storage by encoding duplicate files only once. Duplicate files are displayed when the image is created.
-ois
Optimize storage by encoding duplicate files only once. The diamond compression timestamp is ignored when comparing files. Duplicate files are displayed when the image is created.
-p
Specifies the value to use for the platform ID in the El Torito catalog. The default value is 0x00, which means X86 platform. This option can only be used for a single boot image and cannot be used with any multi boot switch.
-q
Scan only source files; this command does not create images.
-t mm/dd/yyyy,hh:mm:ss
Specify a time stamp for all files and directories. Do not use any spaces. Use us date format and 24-hour system. You can use any separator between projects.
For example,
Copy code – T12 / 31 / 2000,15:01:00
-u1
Generates an image containing the UFD file system and the ISO 9660 file system. The ISO 9660 file system will write using a DOS compliant 8.3 file name. The UFD file system will write using the Unicode file name. This option cannot be combined with the – N, – NT, or – D options.
-u2
Generate an image that contains only the UFD file system. Any system that cannot read UFD will see only one default text file, warning the user that the image is only available on UDF enabled computers. This option cannot be combined with the – N, – NT, or – D options.
-ur
Overwrite the default text file for the – U2 option. For example: – URC:\ Readme.txt
This option cannot be combined with the – N, – NT, or – D options.
-us
Creates a sparse file when available. This option can only be used with the – U2 option. This option cannot be combined with the – N, – NT, or – D options.
-ue
Create an embedded file. This option can only be used with the – U2 option. This option cannot be combined with the – N, – NT, or – D options.
-uf
Embedded UFD file identifier entry. This option can only be used with the – U2 option. This option cannot be combined with the – N, – NT, or – D options.
-uv
Specify UDF video area compatibility during DVD video / audio disk creation. This means UDF 1.02 and ISO 9660 will be written to disk. In addition, video_ TS、AUDIO_ Ts and jacket_ All files in the P directory will be written first. These directories take precedence over all other collations used for this image. This option cannot be combined with the – N, – NT, – D, – j 1, – J 2, – JS, – U 1, – U 2, – ur, – US, – ue, – UF, or – YL options.
-ut
During DVD video / audio disk creation, truncate the ISO 9660 part of the image. With this option, only video is visible from the ISO 9660 file system_ TS、AUDIO_ Ts and jacket_ P directory. This option cannot be combined with the – N, – NT, – D, – j 1, – J 2, – JS, – U 1, – U 2, – ur, – US, – ue, – UF, or – YL options.
-w1
Reports all filenames and depths that are not compatible with ISO or Joliet.
-w2
Report all file names that are not DOS compatible.
-w3
Report all zero length files.
-w4
Report each filename copied to the image.
-x
Calculates and encodes the autocrc value in the image.
-yd
Cancels warnings for different files with the same initial 64000 bytes.
-yl
Specify a long assignment description, not a short assignment description. This option cannot be combined with the – N, – NT, or – D options.
-y5
Specifies the file layout in the disk. This option first writes all files in the i386 directory in reverse order.
-y6
Specifies the directory record that should be fully aligned at the end of the sector.
-yo
Specifies the file layout in the disk. This option specifies a text file that contains the layout of the file that will be placed in the image. The rules for this file are listed below.
The sequence file must be ANSI.
The sequence file must end with a new line.
The sequence file must contain one file per line.
Each file must be specified relative to the root of the image.
You must specify a long filename for each file. Short names are not allowed.
The length of each file path cannot exceed Max_ Path, including the volume name.
Note that not all files must be listed in sequential files. If there are no sort files, all files not listed in this file should be sorted in the default order.
Important matters
-The Yo option takes precedence over the – Y5 option.

-yw
Open the source file and write the share.
SourceLocation
Required. Specifies the location of the file you want to create into the. ISO image.
TargetFile
Specifies the name of the. ISO image file.

Create DVD image
For images above 4.5 GB, a boot sequence file must be created( Bootorder.txt ), to ensure that the boot files are all at the beginning of the image. For example,
Copy code oscdimg – M – N – yoc: \ temp\ bootorder.txt -bC:\winpe_ x86\ etfsboot.com
The following documents are available at bootorder.txt Location in.
Copy code boot \ BCD
boot\boot.sdi
boot\bootfix.bin
boot\bootsect.exe
boot\etfsboot.com
boot\memtest.efi
boot\memtest.exe
boot\en-us\bootsect.exe.mui
boot\fonts\chs_boot.ttf
boot\fonts\cht_boot.ttf
boot\fonts\jpn_boot.ttf
boot\fonts\kor_boot.ttf
boot\fonts\wgl4_boot.ttf
sources\boot.wim