Command Prompt for Windows




Command UNTAR

(External)

Function:

Untar a UNIX tape archive (ie. .TAR file).

Syntax:

UNTAR [drive:][path]filename[.TAR] [/D] [/V]
filenameSpecifies the file to untar.
/DDisplay a directory listing of the tar archive.
/VShow version information.

Note:

A tar file must have a file extension of .TAR, since this is the only way to determine whether or not a file is a tar file.

The directory structure inside the tar file is recreated and the file names inside a tar file are mapped to long file names.

When a file already exists, then the user will be prompted whether to over write the existing file and if not a new file name will be requested. It is quite possible for a tar file to contain more than one file name that will map to a single long file name, since under UNIX filenames are case sensitive. For example, Read.Me and read.me will both be mapped to READ.ME under Windows.

Wildcards can not be used for parameter filename.

Also see command UNCOMP.

Special note:

There should be no need to ever tar or compress a file under Windows. There are a number of archive formats that are supported by both UNIX and Windows (eg. ZIP archive format), which should be used instead.