----^--->
/\

//\\
//The\
/Sy
stem\
////
Guard
\

In the mount of the LORD it shall be seen. Genesis 22:14

FTYPE

Booming Or Fuming? | MasterCatalog | ntlib (FREE) | NTCmdLib | MtCmds | Scripts | Almost Free | TheGuardBook | Help

 

Common
Command Set
INTERNAL

  ASSOC | BREAK | CALL | CD | CHDIR | CLS | COLOR | COPY | DATE | DEL | DIR | ECHO | ENDLOCAL | ERASE | EXIT | FOR | FTYPE | GOTO | IF | MD | MEM | MKDIR | MOVE | PATH | PAUSE | POPD | PROMPT | PUSHD | RD | REM | REN | RENAME | RMDIR | SET | SETLOCAL | SHIFT | START | TIME | TITLE | TYPE | VER | VERIFY | VOL

K

E

Y

Common Commands INTERNAL External /SWITCH Parameter Help text AddonTool
Mounted Commands .Mount/\Command CmdShorthand #Constant $FUNCTION :Procedure !GuardNote
Operating Systems NT/2K/XP/K3 NT Only NT/2K 2K Only 2K/XP XP Only XP/K3 K3 Only 2K/XP/K3

Related Resources from the NT/2K/XP/K3 Command Library

Resource

  Short Description
     

Go straight to !GuardNotes. (updated 2004-07-13)


This is the Mounted Help Text.  We also archive the Common Help Text for NT, 2K, XP and K3

Description

Displays or modifies file types used in file extension associations

Syntax

FTYPE

  [fileType[=[openCommandString]]]

Parameters and Switches

fileType

  Specifies the file type to examine or change

openCommandString

  Specifies the open command to use when launching files of this type.

Examples, Notes and Instructions

Type FTYPE without parameters to display the current file types that have open command strings defined. FTYPE is invoked with just a file type, it displays the current open command string for that file type.  Specify nothing for the open command string and the FTYPE command will delete the open command string for the file type.

Within an open command string %0 or %1 are substituted with the file name being launched through the assocation. %* gets all the parameters and %2 gets the 1st parameter, %4 %3 the second, etc. %~n gets all the remaining parameters starting with the nth parameter, where n may be between 2 and 9, inclusive.

For example:

ASSOC .pl=PerlScript
FTYPE
PerlScript=perl.exe %1 %*

would allow you to invoke a Perl script as follows:

script.pl 1 2 3

If you want to eliminate the need to type the extensions, then do the following:

set PATHEXT=.pl;%PATHEXT%

and the script could be invoked as follows:

script 1 2 3


GuardNotes

Things that are different (by design, by accident or otherwise)

Typos in the help text

In the NT help text, the description of parameter parsing inside the openCommandString incorrectly states that %4 gets the second parameter.  This was changed in 2K/XP/K3 to say %3, which is correct.

We did note something that is CONSISTENT across NT/2K/XP/K3.  The misspelling of "association" as "assocation" has survived from Windows NT on up to and including Windows Server 2003!  That's an amazing 7 years and no one has caught it (yet)!


Common
Command Set
INTERNAL

  ASSOC | BREAK | CALL | CD | CHDIR | CLS | COLOR | COPY | DATE | DEL | DIR | ECHO | ENDLOCAL | ERASE | EXIT | FOR | FTYPE | GOTO | IF | MD | MEM | MKDIR | MOVE | PATH | PAUSE | POPD | PROMPT | PUSHD | RD | REM | REN | RENAME | RMDIR | SET | SETLOCAL | SHIFT | START | TIME | TITLE | TYPE | VER | VERIFY | VOL
/\
//\\
//
The\
/Sy
stem\
////
Guard
\
COME ON UP WITH US!
and
Congratulations On Your Decision
to
RISE ABOVE
THE REST!

^
/
!\
/LIB\

TheSystemGuard.com [Revised: 2007-03-29]
Copyright © 1995-2007, JWC
Computer Communications,
All Rights Reserved, Worldwide.
 Disclaimer       Privacy       About Us       More


Communication Is Business!

We Master It With Knowledge!

^
/
.\
/M^C\