The desktop.ini file is a hidden file used to store information about the arrangement of a Windows folder. Essentially, if a folder’s layout or settings are changed, a desktop.ini file is automatically generated to save those changes.
Could it be a virus in some cases? No, this file is not a virus. However, there are some viruses that take advantage of the capabilities of the desktop.ini file. If you are concerned that this file is infected, scan it with an antivirus program.
Some questions you may be asking yourself:
- Why is it on your desktop?
- Is it an essential file?
- Can you get rid of this file?
- Can you delete it?
Read the full article to learn more about the desktop.ini file and how to delete it.
Table of Headings
- How to remove the desktop.ini file from your computer
- Learn more about Desktop.ini
- Is the desktop.ini file malicious?
- Why do you see the desktop.ini file?
- Can you stop the automatic generation of the file?
- How to hide the desktop.ini file
- Can you delete the file?
- Stop automatic file generation
- Desktop.ini virus removal
How to remove the desktop.ini file from your computer
Learn more about Desktop.ini
The desktop.ini file is a file that most Windows users see on the desktop. It is usually a hidden file. You will see the desktop.ini file on the desktop when you change the layout or settings of a file folder.
Check how Windows displays your files and folders. It is a file that stores information about the arrangement of folders in Windows. You can find this type of file in any folder on your computer. Best of all, chances are you’ll notice the desktop.ini file on your desktop.
If you view the properties of the desktop.ini file, it shows the file type as “Configuration settings (ini)”. You can open the file using Notepad.
Is the desktop.ini file malicious?
No, it is one of the configuration files of your PC or laptop. It is not a virus or a malicious file. Your computer automatically creates the desktop.ini file, so you don’t have to worry about it. However, there are some viruses that can use the desktop.ini file. You can run a virus check on it to see if it is infected or not.
To scan the desktop.ini file for viruses,
- Right-click on the d esktop.ini file.
- Choose the scan by virus option.
- On some computers, the menu displays the scan option as Scan with ESET Internet Security (I use ESET Internet Security. If you are using another antivirus program, Windows replaces the option with the program name).
If the virus scan does not show any threats, your file is completely safe from virus attacks.
Why do you see the desktop.ini file?
Typically, Windows keeps the desktop.ini file hidden along with other system files. If you can see the desktop.ini file, you may have set options to show hidden files and folders. However, you can change the options if you no longer want to see them.
Can you stop the automatic generation of the file?
No, Windows automatically creates the file whenever you make changes to a folder. You cannot disable the automatic creation of the desktop.ini file on your computer. Even if you delete the file, it will reappear when you make changes to a folder. However, there are a few ways to solve this problem. Read on to learn more.
How to hide the desktop.ini file
I don’t recommend deleting a system file (although deleting would not cause errors); you can hide the desktop.ini file from the desktop.
To hide the configuration file,
- Open Search.
- Type File Explorer Options and open it.
- Switch to the View tab.
- Choose the Do not show hidden files, folders, or drives option.
You have now hidden the desktop.ini file. Hidden system files, including the desktop.ini file, will not show up now.
You can also hide the desktop.ini file from File Explorer.
- Open File Explorer.
- From the File Explorer menu, access the View menu.
- In the Show / Hide panel, make sure the Hidden Options box is not checked.
- If you see a check mark in the above check box, click it to deselect.
You have now configured File Explorer to not show hidden files and consequently, you have hidden the desktop.ini file.
Can you delete the file?
If you don’t want the desktop.ini file to appear on your desktop, you can simply delete it. Deleting the file does not cause any damage to the system. If you’ve changed your folder settings (appearance, display, etc.), you may not see the customizations.
For example, if you changed the appearance of the folder and then deleted it, its appearance reverts to its previous appearance. However, you can change the settings again. After changing the settings, the desktop.ini file reappears.
To delete the configuration file:
- Right-click on the desktop.ini file.
- Click Delete.
- Right-click on OK when prompted for confirmation.
You can also,
- Select the file using the mouse or keyboard.
- Press the Delete key from your keyboard.
- Press the Enter key if you are prompted for confirmation.
To permanently delete the desktop.ini file:
- Select the desktop.ini file.
- Press the Shift + Delete keys on your keyboard.
By following the above ways, you can delete the desktop.ini file.
Here’s how you can delete the file using the command prompt:
To delete the file using the command prompt (desktop.ini):
- Open the Run command (type “Run” in the search or press Win + R).
- Type cmd, then click on OK.
- You can type or paste the command given in the window of the command prompt: del / s / ha desktop.ini
Stop automatic file generation
After you have successfully deleted the file, to prevent it from reappearing, follow the given steps.
- Open the Run command (type “Run” in the search or press Winkey + R).
- Type regedit, and then click on OK.
- You can also search the registry editor and open the application.
- Expand HKEY_LOCAL_MACHINE from the left panel of the editor.
- Now expand SOFTWARE.
- Expand Microsoft. Then expand Windows.
- Expand CurrentVersion and select Criteria.
- Choose Windows Explorer.
- Right-click on it and select New < DWORD Value.
- Rename the value as DesktopIniCache.
- Double click on the value.
- Set the value to Zero (0).
- Click on OK.
- Now exit the Registry Editor application.
The desktop.ini files now cannot recreate themselves.
Desktop.ini virus removal
If your antivirus software diagnoses the desktop.ini file as a virus or threat, you need to delete it. To remove the file,
- Start your PC in Safe Mode.
- Delete the file (desktop.ini).
- Open the ‘ editor of the register and delete the infected entries on the register
- Restart your PC or laptop.
We hope this guide was helpful and you were able to remove the desktop.ini file from your computer. However, if you have any doubts, feel free to ask in the comments section.