Ftype command in Windows
The ftype command displays or modifies the file types used in file name extension links. If used without the assignment operator (=), the ftype command will display the current string of open commands for the specified file type. If used without parameters, the ftype command will display the file types with the specified sequence of commands.
For an example of how to use this command, please see the example below.
Cu ftype ordinance
ftype [[=[]]]
Parameters
ParametersDescription Specifies the file type to display or change. Specify the open command string to use when opening files of the specified file type. /? Show help at the command prompt.Note
The following table describes how the ftype command replaces the variables in an open command string:
Variable Replace value% 0 or% 1 Replaced with the file name that is launched via the link. % * Get all parameters. % 2,% 3, . Take the first parameter (% 2), the second parameter (% 3), etc. .% ~ Get all the remaining parameters starting with the Nth parameter, in where N can be any number from 2 to 9.For example
To display the current file types with defined command sequences, enter:
ftype
To display the current open command string for the txtfile file type, enter:
ftype txtfile
This command produces the following result:
txtfile=%SystemRoot%system32NOTEPAD.EXE %1
To delete the open command string for a file type called Example, enter:
ftype example=
To link the .pl file name extension to the PerlScript file type and allow PerlScript file type to run PERL.EXE, enter the following commands:
assoc .pl=PerlScript ftype PerlScript=perl.exe %1 %*
To eliminate the need to type the .pl file name extension when calling a Perl script, type:
set PATHEXT=.pl;%PATHEXT%
See more:
- Fondue command in Windows
- Findstr command in Windows
- Freedisk command in Windows
You should read it
May be interested
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.