Oscdimg command line options using _dos/bat

Source: Internet
Author: User
Tags local time md5 hash
Oscdimg Command line Options
Update Time: May 2009
Applied to: Windows 7
Oscdimg is a command-line tool for creating a custom 32-bit or 64-bit version of the Windows (. iso) file. You can then burn the. iso file to a CD-ROM or DVD-ROM. Oscdimg supports the ISO 9660, Joliet, and Universal Disk Format (UFD) file system.
Note
To create a bootable CD-ROM, you must use the CD burning software, which can unpack the. iso file and burn it to a CD-ROM. copying only the. iso file to the CD-ROM will not work.
An Itanium-based computer running Windows Server 2003 does not support the Oscdimg tool.

Oscdimg Command line Options
The following command-line options are available for Oscdimg.
Oscdimg [Options] Sourcelocationtargetfile
Option description
-A
Displays an allocation summary for 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 that the ANSI file name is used instead of the OEM file name.
-D
Do not force lowercase file names to be converted to uppercase letters.
-E
This option disables the simulation of floppy disks in the El Torito catalog. This option is only available for single boot item images and cannot be used in conjunction with any multiple-boot switch.
-G
Use universal Coordination Time (UCT) instead of local time for all files.
-H
Includes hidden files and directories.
-j1
Encodes the Joliet Unicode filename and generates a 8.3 file name that is compatible with DOS in the ISO 9,660 name space. These file names can be read by the Joliet system or the traditional ISO 9660 system, but Oscdimg may change some filenames in the ISO 9,660 namespace to conform to DOS 8.3 and/or ISO 9660 naming restrictions.
When you use the-j1,-j2, or-JS options, the-D, N, and-NT options are not applied and cannot be used.
-j2
Encodes the Joliet Unicode file name without a standard ISO 9,660 name. (Requires the Joliet operating system to read files from CD-ROM.) )
When you use the-j1,-j2, or-JS options, the-D, N, and-NT options are not applied and cannot be used.
-js
Overrides the default text file for the-J2 option, for example,-jsc:\readme.txt
When you use the-j1,-j2, or-JS options, the-D, N, and-NT options are not applied and cannot be used.
-K
The image is created even though it cannot open some source files.
-L LabelName
Specifies the volume label. You cannot use spaces between L and LabelName.
For example,-lmylabel
-M
Ignores the maximum size limit for an image.
-maxsize:limit
Overrides the default maximum size of an image. A CD with a default size of 74 minutes, unless you use UDF, in which case the default value is no maximum size. The limit value is specified in megabytes (MB). For example,-maxsize:4096 can limit the image to 4096 MB.
The-m option cannot be used with this option.
-N
Long file names are allowed.
-nt
Allow long file names that are compatible with Windows NT 3.51.
-O
Optimizes storage by comparing files by using the MD5 hash algorithm to encode only once for duplicate files.
-oc
Optimizes storage by using a binary comparison of each file to encode only one duplicate file at a time. This option is slower than-O.
-oi
Optimizes storage by encoding only once for duplicate files. The diamond compression timestamp is ignored when comparing files.
-os
Optimizes storage by encoding only once for duplicate files. Displays duplicate files when you create an image.
-ois
Optimizes storage by encoding only once for duplicate files. The diamond compression timestamp is ignored when comparing files. Displays duplicate files when you create an image.
-P
Specifies the value to use for the platform ID in the El Torito catalog. The default value is 0x00, which represents the x86 platform. This option is only available for single boot item images and cannot be used in conjunction with any multiple-boot switch.
-Q
Scan only source files; This command does not create an image.
-T Mm/dd/yyyy,hh:mm:ss
Specify a timestamp for all files and directories. Do not use any spaces. Use the U.S. 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 that contains the UFD file system and the ISO 9660 file system. The ISO 9660 file system will be written with 8.3 file names that are compatible with DOS. The UFD file system will be written with a Unicode file name. This option cannot be used in combination with-N,-nt, or-D options.
-u2
Generates 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 the computer that supports the UDF. This option cannot be used in combination with-N,-nt, or-D options.
-ur
Overrides the default text file for the-U2 option. For example:-urc:\readme.txt
This option cannot be used in combination with-N,-nt, or-D options.
-us
Create sparse files when available. This option can only be used with the-U2 option. This option cannot be used in combination with-N,-nt, or-D options.
-ue
Create an inline file. This option can only be used with the-U2 option. This option cannot be used in combination with-N,-nt, or-D options.
-uf
Inline UFD file identifier entries. This option can only be used with the-U2 option. This option cannot be used in combination with-N,-nt, or-D options.
-uv
Specify UDF video zone compatibility during DVD video/audio disk creation. This means that UDF 1.02 and ISO 9660 will be written to disk. In addition, all files in the Video_ts, Audio_ts, and jacket_p directories are written first. These directories take precedence over all other collations for this image. This option cannot be used in combination with-N,-nt, D,-j1,-j2,-js,-U1,-u2,-ur,-us,-ue,-uf, or-yl options.
-ut
In the DVD video/audio disk creation process, truncates the ISO 9,660 portion of the image. When you use this option, only the VIDEO_TS, Audio_ts, and jacket_p directories are visible from the ISO 9660 file system. This option cannot be used in combination with-N,-nt, D,-j1,-j2,-js,-U1,-u2,-ur,-us,-ue,-uf, or-yl options.
-w1
Reports all file names and depths that are incompatible with ISO or Joliet.
-w2
Reports all file names that are not compatible with DOS.
-w3
Report all 0 length files.
-w4
Reports each file name that is copied to the image.
-X
Computes and encodes the AUTOCRC value in the image.
-yd
Suppresses warning messages for different files that have the same initial 64,000 bytes.
-yl
Specifies the long assignment description, not the short assignment description. This option cannot be used in combination with-N,-nt, or-D options.
-y5
Specifies the layout of the files on the disk. This option first writes all files in the I386 directory in reverse order.
-y6
Specify the directory records that should be fully aligned at the end of the sector.
-yo
Specifies the layout of the files on the disk. This option specifies a text file that contains the layout of the files that will be placed in the image. The rules for this file are listed below.
The sequential file must be ANSI.
The sequential file must end with a new line.
The sequential file must contain one file per line.
Each file must be specified relative to the root directory of the image.
You must specify a long file name for each file. Short names are not allowed.
The length of each file path cannot exceed MAX_PATH, including the volume name.
Please note that not all files must be listed in the sequential file. If you do not have a sort file, all files that are not listed in this file should be sorted in the default order.
Important matters
The-yo option takes precedence over the-Y5 option.

-yw
Opens the source file and can write shares.
Sourcelocation
Necessary. Specifies the location of the files that you want to create into the. iso image.
TargetFile
Specifies the name of the. iso image file.

Create a DVD image
For images above 4.5 GB, you must create a boot sequence file (Bootorder.txt) to ensure that the boot files are at the beginning of the image. For example
Copy Code oscdimg-m-n-yoc:\temp\bootorder.txt-bc:\winpe_x86\etfsboot.com
The location of the following files in Bootorder.txt.
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.