Prev | Current Page 910 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

For example, an administrator
could create a batch file to set up a user machine to use specific applications to handle
certain kinds of files. The following sections describe these two commands.
Determining and Creating File Associations with the Assoc Command
The Assoc command can display or change the association between a file extension and a file type.
For example, when you type Assoc .TXT and press Enter, the Assoc command responds with
.TXT=txtfile on a Windows system using the default setup. This command uses the following
syntax:
ASSOC [.ext[=[fileType]]]
The following list describes each of the command line arguments.
.ext Specifies the file extension that you want to assign or display. The file extension must
begin with a period or the utility will fail. For example, you must type .TXT instead of TXT alone.
388 CHAPTER 14 WORKING WITH DATA
fileType Specifies the file type to assign to the file extension. The file type must exist within the
registry (create it if necessary using the FType command). Always place an equals sign between
the file extension and type. For example, to associate the .TXT extension with the txtfile type,
you??™d type Assoc .


Pages:
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922
zamykanie naczynek bielsko centralka Wczasy nad morzem oferty spa kierunki studiów