[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
System User's Guide: Operating System and Devices

DOS Files

The AIX operating system allows you to work with DOS files on your system. Copy to a diskette the DOS files you want to work with. With the correct commands, your system can read these files into an AIX directory in AIX format and back onto the diskette in DOS format.

Note: The wildcard characters * and ? (asterisk and question mark) do not work with these commands (although they do with the AIX shell). If you do not specify a file name extension, the file name is matched as if you had specified a blank extension.

This section describes:

Copying DOS Files to AIX Files

The dosread command copies the specified DOS file to the specified AIX file.

Note: DOS file-naming conventions are used with one exception. Because the \ (backslash) character can have special meaning to the AIX operating system, use a / (slash) character as the delimiter to specify subdirectory names in a DOS path name.

For example, to copy a text file named chap1.doc from a DOS diskette to the AIX file system, enter:

dosread -a chap1.doc chap1

This copies the DOS text file \CHAP1.DOC on default device /dev/fd0 to the AIX file chap1 in the current directory.

For example, to copy a binary file from a DOS diskette to the AIX file system, enter:

dosread -D/dev/fd1 /survey/test.dta /home/fran/testdata

This copies the DOS data file \SURVEY\TEST.DTA on /dev/fd1 to the AIX file /home/fran/testdata.

See the dosread command in the AIX Version 4.3 Commands Reference for the exact syntax.

Copying AIX Files to DOS Files

The doswrite command copies the specified AIX file to the specified DOS file.

Note: DOS file-naming conventions are used with one exception. Because the \ (backslash) character can have special meaning to the AIX operating system, use a / (slash) character as the delimiter to specify subdirectory names in a DOS path name.

For example, to copy a text file named chap1 from the AIX file system to a DOS diskette, enter:

doswrite -a chap1 chap1.doc

This copies the AIX file chap1 in the current directory to the DOS text file \CHAP1.DOC on /dev/fd0.

For example, to copy a binary file named /survey/test.dta from the AIX file system to a DOS diskette, enter:

doswrite -D/dev/fd1 /home/fran/testdata /survey/test.dta

This copies the AIX data file /home/fran/testdata to the DOS file \SURVEY\TEST.DTA on /dev/fd1.

See the doswrite command in the AIX Version 4.3 Commands Reference for the exact syntax.

Deleting DOS Files

The dosdel command deletes the specified DOS file.

Note: DOS file-naming conventions are used with one exception. Because the \ (backslash) character can have special meaning to the AIX operating system, use a / (slash) character as the delimiter to specify subdirectory names in a DOS path name.

The dosdel command converts lowercase characters in the file or directory name to uppercase before it checks the disk. Because all file names are assumed to be full (not relative) path names, you need not add the initial / (slash).

For example, to delete a DOS file named file.ext on the default device (/dev/fd0), enter:

dosdel file.ext

See the dosdel command in the AIX Version 4.3 Commands Reference for the exact syntax.

Listing Contents of a DOS Directory

The dosdir command displays information about the specified DOS files or directories.

Note: DOS file-naming conventions are used with one exception. Because the \ (backslash) character can have special meaning to the AIX operating system, use a / (slash) character as the delimiter to specify subdirectory names in a DOS path name.

The dosdir command converts lowercase characters in the file or directory name to uppercase before it checks the disk. Because all file names are assumed to be full (not relative) path names, you need not add the initial / (slash).

For example, to read a directory of the DOS files on /dev/fd0, enter:

dosdir

The command returns the names of the files and disk-space information.

PG3-25.TXT
PG4-25.TXT
PG5-25.TXT
PG6-25.TXT
Free space: 312320 bytes

See the dosdir command in the AIX Version 4.3 Commands Reference for the exact syntax.

Related Information

Commands Overview

Processes Overview

Input and Output Redirection Overview

Shells Overview

File Systems Overview

Directory Overview

Files Overview

Linking Files and Directories

Printers, Print Jobs, and Queues

Backup Files and Storage Media

File and System Security


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]