Windows file type and open Mode definition method _dos/bat

Source: Internet
Author: User
Assoc: Defines the file type based on the file name extension. You can use this command to display or modify file name extension associations
For example:
. bat=batfile
. xls=excel.sheet.8

Ftype: The Open method is defined according to the file type. You can use this command to display or modify file types that are used in association with file name extensions
For example:
batfile= '%1 '%*
excel.sheet.8= "C:\Program Files\Microsoft Office\office\excel. EXE "/e

Description
The basic use format for Ftype is: Ftype [File Type [=[open mode/program]
For example, the ftype exefile=notepad.exe% 1 In the example above indicates that all files of the file type EXE (exefile as an EXE type file) are opened through the Notepad program, and the following%1 represents the program itself (the one that was double-clicked).
Ftype exefile=%1%* means that all EXE files are run directly (EXE can be run directly, so use%1 to represent the program itself), followed by%* to represent all the parameters after the program command (which is why EXE files can run with parameters).

So, if there is a problem with the System file type and association, we can just reset it with these two commands.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.