Windows file types open with

File Types and File Associations

This section on file types and file associations is organized as follows:

Additional Resources

  • Set Program Access and Computer Defaults (SPAD) is a Windows Control Panel which allows users with administrative privilege to set a machine default and hide or show an application. Media, Mail, Browser, Messenger and Java applications are examples of applications registered in SPAD. Set Your Default Programs (SYDP) is a Windows Control Panel, that works with limited privileges, and permits users to set a user default. Any application can register in SYDP. For information about SPAD and SYDP application registration, see Guidelines for File Associations and Default Programs, and Set Program Access and Computer Defaults (SPAD).
  • For related conceptual background, see Overview of Verbs and File Associations.
  • To create a Shell data store, see Implementing the Basic Folder Object Interfaces.

For related reference documentation, see the following topics:

  • To execute a verb on a Shell item, see the InvokeVerb method.
  • To retrieve a collection of verbs that can be executed on a Shell item, see the Verbs method.
  • For performing an operation on a specified file, see either the ShellExecute or ShellExecuteEx functions.
  • For a list of default perceived types, see the PERCEIVED enumeration.
  • To retrieves a file’s perceived type based on its extension, see the AssocGetPerceivedType function.

How to show File Extensions in Windows 10

File Extension is that which identifies the file type. If you are a regular Windows user, then it is not at all a problem to identify the file type. For it is very important to see file extension to identify the type of file you are trying to open from a security point of view. So in this post, we will see how to hide or show File Extensions in Windows 10/8/7 and why you should show them.

Since file names allow you to use multiple full stops, the real name of a malware file could be realword .docx.exe . But because you have not set Windows to show file extensions, you would see only realword .docx . Thinking its a Word document, you could well end up clicking on it and infecting your computer. If you had, on the other hand, set your PC to show file extensions, you would see its full name – realword .docx.exe , which would help you to identify that it was actually an executable file and in all probability a malware file.

What are File Extensions & how are they useful

Different file types have different extensions. Audio files have .mp3, .wav, .wma, and more based on the program used to open that file. File extensions also help the operating system to identify the corresponding program to open that particular file. So, you should be able to see file extensions to be at the safer side, and we will let you know how to enable options to see file extensions in Windows.

As mentioned earlier, by default Windows does not show file extensions and they are hidden. But, you can toggle the option to see them.

Show File Extensions in Windows 10

There are five ways how you can go about accessing this setting:

  1. Through the File Explorer Options
  2. Through Windows Explorer Ribbon
  3. Using the Registry
  4. Using Command Prompt
  5. Using Group Policy Editor.

1] Through Folder or File Explorer Options

Open Control Panel > Appearance and Personalization. Now, click on Folder Options or File Explorer Option, as it is now called > View tab.

In this tab, under Advanced Settings, you will see the option Hide extensions for known file types. Uncheck this option and click on Apply and OK.

Читайте также:  Windows планшет с телефоном

Windows 10 users may also search for File Explorer Options in Start search box and open this box.

Now, you can see file extensions for all files anywhere on your Windows system.

In Windows 10/8.1 Explorer, you can access File Explorer Options via Explorer.

Click View > Options > Change folder and search options.

Once here, you can do the needful as explained above.

In Windows 7, open Explorer, press Alt on your keyboard to make the Classic bar appear. Next, click on Tools > Folder Options. Now follow the steps mentioned above.

These are very simple steps to follow, and you do not need any third-party software to view file extensions. Windows provides us with everything which can be easily achieved, and the point lies in knowing and implementing them. This is the first way to see file extensions in Windows 7.

2] Via Windows File Explorer

Open Explorer and click on the View tab. Simply select the File name extensions checkbox, and you are all set.

3] Using the Registry Editor

Hit the WINKEY + R button combination to launch the Run utility, type in regedit and hit Enter. Once Registry Editor opens, navigate to the following key-

Look up for a DWORD entry labeled as HideFileExt.

Double click on the mentioned DWORD entry and set its value as 0. This will show up the hidden file extensions.

A value of 0 will hide the file extensions.

Exit the Registry Editor and then reboot your computer for the changes to take effect.

4] Use Windows Command Prompt

This fix can be used in both the scenarios mentioned above. Insert a bootable drive of Windows 10 installer.

Start by hitting the WINKEY + X combinations and select Command Prompt (Admin) to launch Command Prompt with Administrator Privileges.

Navigate to the root location of that bootable device inside the Command Prompt command line. Once you get there, type in the following to show the file extensions-

And then hit Enter.

You can also enter the following command to hide the file extensions,

5] Using Group Policy Editor

You can also use the Group Policy Editor and change the setting here:

User Configuration > Preferences > Control Panel Settings > Folder Options.

Set “Show hidden files and folders” and uncheck “Hide extensions for known file types”.

Thus, you can set your Windows to show file extensions in Windows 10/8. If you have anything to add, please do share it with us through comments.

Date: March 22, 2020 Tags: Explorer, Features

openfiles openfiles

Позволяет администратору запрашивать, отображать или отключать файлы и каталоги, открытые в системе. Enables an administrator to query, display, or disconnect files and directories that have been opened on a system. Эта команда также включает или отключает глобальный флаг System обслуживание списка объектов . This command also enables or disables the system Maintain Objects List global flag.

Openfiles/Disconnect openfiles /disconnect

Позволяет администратору отключить файлы и папки, открытые удаленно через общую папку. Enables an administrator to disconnect files and folders that have been opened remotely through a shared folder.

Синтаксис Syntax

Параметры Parameters

Параметр Parameter Описание Description
ключ /s Указывает удаленную систему для подключения (по имени или IP-адресу). Specifies the remote system to connect to (by name or IP address). Не используйте обратные косые черты. Don’t use backslashes. Если параметр /s не используется, команда по умолчанию выполняется на локальном компьютере. If you don’t use the /s option, the command is run on the local computer by default. Этот параметр применяется ко всем файлам и папкам, указанным в команде. This parameter applies to all files and folders that are specified in the command.
/u [ \] /u [ \] Выполняет команду, используя разрешения указанной учетной записи пользователя. Runs the command using the permissions of the specified user account. Если параметр /u не используется, по умолчанию используются разрешения системы. If you don’t use the /u option, system permissions are used by default.
/p [

] Указывает пароль учетной записи пользователя, указанной в параметре /u . Specifies the password of the user account that is specified in the /u option. Если вы не используете параметр /p , при выполнении команды появится запрос на ввод пароля. If you don’t use the /p option, a password prompt appears when the command is run. /ID /id Отключает открытые файлы по указанному ИДЕНТИФИКАТОРу файла. Disconnects open files by the specified file ID. С этим параметром можно использовать подстановочный знак (*). You can use the wildcard character (*) with this parameter.

Примечание. для поиска идентификатора файла можно использовать команду openfiles/Query . Note: You can use the openfiles /query command to find the file ID. / /a

Отключает все открытые файлы, связанные с именем пользователя, указанным в параметре акцесседби . Disconnects all open files associated with the user name specified in the accessedby parameter. С этим параметром можно использовать подстановочный знак (*). You can use the wildcard character (*) with this parameter. /o /o Отключает все открытые файлы с указанным значением в открытом режиме. Disconnects all open files with the specified open mode value. Допустимые значения: Чтение, запись, чтение и запись. Valid values are Read, Write, or Read/Write. С этим параметром можно использовать подстановочный знак (*). You can use the wildcard character (*) with this parameter. /Op /op Отключает все соединения открытых файлов, созданные с помощью определенного имени открытого файла. Disconnects all open file connections that are created by a specific open file name. С этим параметром можно использовать подстановочный знак (*). You can use the wildcard character (*) with this parameter. /? /? Отображение справки в командной строке. Displays help at the command prompt.

Примеры Examples

Чтобы отключить все открытые файлы с помощью идентификатора файла 26843578, введите: To disconnect all open files with the file ID 26843578, type:

Чтобы отключить все открытые файлы и каталоги, к которым обращается пользователь хироплн, введите: To disconnect all open files and directories accessed by the user hiropln, type:

Чтобы отключить все открытые файлы и каталоги с режимом чтения и записи, введите: To disconnect all open files and directories with read/write mode, type:

Чтобы отключить каталог с открытым именем файла * К:\тестшаре * , независимо от того, кто обращается к нему, введите: To disconnect the directory with the open file name *C:\testshare*, regardless of who is accessing it, type:

Чтобы отключить все открытые файлы на удаленном компьютере срвмаин , к которым обращается пользовательская хироплн, независимо от их идентификатора, введите: To disconnect all open files on the remote computer srvmain that are being accessed by the user hiropln, regardless of their ID, type:

Openfiles/Query openfiles /query

Запрашивает и отображает все открытые файлы. Queries and displays all open files.

Синтаксис Syntax

Параметры Parameters

Параметр Parameter Описание Description
ключ /s Указывает удаленную систему для подключения (по имени или IP-адресу). Specifies the remote system to connect to (by name or IP address). Не используйте обратные косые черты. Don’t use backslashes. Если параметр /s не используется, команда по умолчанию выполняется на локальном компьютере. If you don’t use the /s option, the command is run on the local computer by default. Этот параметр применяется ко всем файлам и папкам, указанным в команде. This parameter applies to all files and folders that are specified in the command.
/u [ \] /u [ \] Выполняет команду, используя разрешения указанной учетной записи пользователя. Runs the command using the permissions of the specified user account. Если параметр /u не используется, по умолчанию используются разрешения системы. If you don’t use the /u option, system permissions are used by default.
/p [

] Указывает пароль учетной записи пользователя, указанной в параметре /u . Specifies the password of the user account that is specified in the /u option. Если вы не используете параметр /p , при выполнении команды появится запрос на ввод пароля. If you don’t use the /p option, a password prompt appears when the command is run. [/FO

] [/fo
]
Отображает выходные данные в указанном формате. Displays the output in the specified format. Допустимые значения: Valid values include:

  • Таблица — отображает выходные данные в таблице. TABLE — Displays output in a table.
  • List — отображает выходные данные в списке. LIST — Displays output in a list.
  • CSV — отображает выходные данные в формате с разделителями-запятыми (CSV). CSV — Displays output in Comma Separated Values (CSV) format.
использован /nh Подавляет вывод заголовков столбцов в выходных данных. Suppresses column headers in the output. Допустим, только если параметр /FO имеет значение Table или CSV. Valid only when the /fo parameter is set to TABLE or CSV.
/v /v Указывает, что в выходных данных отображаются подробные (подробные) сведения. Specifies that detailed (verbose) information be displayed in the output.
/? /? Отображение справки в командной строке. Displays help at the command prompt.

Примеры Examples

Чтобы запросить и отобразить все открытые файлы, введите: To query and display all open files, type:

Чтобы запросить и отобразить все открытые файлы в формате таблицы без заголовков, введите: To query and display all open files in table format without headers, type:

Чтобы запросить и отобразить все открытые файлы в формате списка с подробными сведениями, введите: To query and display all open files in list format with detailed information, type:

Чтобы запросить и отобразить все открытые файлы в удаленной системе срвмаин , используя учетные данные пользователя хироплн в домене маиндом , введите: To query and display all open files on the remote system srvmain by using the credentials for the user hiropln on the maindom domain, type:

В этом примере пароль указан в командной строке. In this example, the password is supplied on the command line. Чтобы запретить отображение пароля, оставьте параметр /p . To prevent displaying the password, leave out the /p option. Вам будет предложено ввести пароль, который не будет отображаться на экране. You’ll be prompted for the password, which won’t be echoed to the screen.

Openfiles/Local openfiles /local

Включает или отключает глобальный флаг System обслуживании списка объектов . Enables or disables the system Maintain Objects List global flag. Если используется без параметров, то openfiles/Local отображает текущее состояние флага » сохранить глобальный список объектов «. If used without parameters, openfiles /local displays the current status of the Maintain Objects List global flag.

Изменения, внесенные с помощью параметра вкл . или выкл ., вступают в силу только после перезагрузки системы. Changes made by using the on or off option don’t take effect until you restart the system. Включение глобального флага » Ведение списка объектов » может замедлить работу системы. Enabling the Maintain Objects List global flag might slow down your system.

Синтаксис Syntax

Параметры Parameters

Параметр Parameter Описание Description
[on | off] Включает или отключает глобальный флаг System обслуживание списка объектов , который отслеживает дескрипторы локальных файлов. Enables or disables the system Maintain Objects List global flag, which tracks local file handles.
/? /? Отображение справки в командной строке. Displays help at the command prompt.

Примеры Examples

Чтобы проверить текущее состояние глобального флага » сохранить список объектов «, введите: To check the current status of the Maintain Objects List global flag, type:

По умолчанию глобальный флаг « Ведение списка объектов » отключен, и появляется следующее сообщение: INFO: The system global flag ‘maintain objects list’ is currently disabled. By default, the Maintain Objects List global flag is disabled, and the following message appears, INFO: The system global flag ‘maintain objects list’ is currently disabled.

Чтобы включить глобальный флаг » Ведение списка объектов «, введите: To enable the Maintain Objects List global flag, type:

При включении глобального флага появляется следующее сообщение: SUCCESS: The system global flag ‘maintain objects list’ is enabled. This will take effect after the system is restarted. The following message appears when the global flag is enabled, SUCCESS: The system global flag ‘maintain objects list’ is enabled. This will take effect after the system is restarted.

Чтобы отключить глобальный флаг » Ведение списка объектов «, введите: To disable the Maintain Objects List global flag, type:

Читайте также:  Не извлекается флешка windows
Оцените статью