This script allows you to remove the default shortcut arrow icon from Windows and replace it with a custom icon, such as a Unix-style clean icon. The script makes a registry modification to update the shortcut icon for a more streamlined look.
- Removes the default shortcut arrow from icons.
- Replaces it with a custom icon (
blank.ico
). - Works by modifying the registry key for Windows Explorer.
- Offers a clean, Unix-like look for your desktop shortcuts.
- Windows 7 or later: The script is designed to work on modern Windows versions.
- Administrator privileges: The script requires elevated privileges to modify the system registry.
- Git: Ensure that Git is installed for the cloning process.
First, clone the repository from GitHub to get the script.
- Open Command Prompt or PowerShell.
- Run the following command to clone the repository:
git clone https://github.com/h471x/blank_icon.git
- Navigate to the
blank_icon
directory:cd blank_icon
- Ensure you are in the
blank_icon
directory (wherescripts\blank.bat
is located). - Run the following command to execute the batch file as an administrator:
runas /user:Administrator ".\scripts\blank.bat"
- You will be prompted to enter the full path to the
blank.ico
file. If the.ico
file is located in the same directory as the script, the script will automatically detect it.
- Navigate to the
scripts
folder inside theblank_icon
directory. - Right-click the
blank.bat
file and select Run as administrator from the context menu. - Follow the on-screen prompts to enter the path to the custom
.ico
file (if necessary).
The script will automatically restart Windows Explorer to apply the changes. This will remove the shortcut arrows and apply the custom icon.
- The script checks if the
blank.ico
file is located in the same directory as the batch script. - If the
.ico
file is not found, it prompts the user to provide the full path to theblank.ico
file. - The registry key for Shell Icons is updated to associate the
blank.ico
with all shortcut icons, removing the default shortcut arrows and replacing them with a clean Unix-like icon.
If you want to revert the changes and restore the default shortcut arrow icon, you can use the revert.bat
script.
- Navigate to the
scripts
folder inside theblank_icon
directory. - Right-click the
revert.bat
file and select Run as administrator from the context menu. - The script will remove the custom icon and restore the default Windows shortcut arrow.
Alternatively, you can run the revert.bat
script from the command line using the following command:
runas /user:Administrator ".\scripts\revert.bat"
- The
revert.bat
script deletes the registry entry for the custom shortcut icon. - It then restarts Windows Explorer to apply the changes and restore the default icons.
- Ensure the
blank.ico
file exists and is named exactlyblank.ico
before running the script. - The script requires administrator privileges to make changes to the Windows registry.
- To restore the default icon after running the
blank.bat
script, you can use therevert.bat
script as described above.