ftype


ftype

Displays or modifies file types for file extension associations.

Syntax

 ftype [   FileType   [=[   OpenCommand   ]]] 

Options

None

Displays all file types that have open commands defined

FileType

Specifies the file type to display or change

OpenCommand

Specifies the command used to open this type of file

Examples

Display all types that have open commands defined:

  ftype  AIFFFile="C:\Program Files\Windows Media Player\wmplayer.exe"  /Open "%L" ASFFile="C:\Program Files\Windows Media Player\wmplayer.exe" /prefetch:7      /Open "%L" ASXFile="C:\Program Files\Windows Media Player\wmplayer.exe"  /Open "%L" AUFile="C:\Program Files\Windows Media Player\wmplayer.exe"  /Open "%L" AVIFile="C:\Program Files\Windows Media Player\wmplayer.exe" /prefetch:8      /Open "%L" batfile="%1" %* Briefcase=explorer.exe %1 ... 

Display open command for txtfile file type:

  ftype txtfile  txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1 

Notes

Use ftype FileType= to delete the open command string for the specified file type, then use the assoc command to create a new file association.

See Also

assoc , Files and Folders



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net