nc_icon is a Windows command-line tool that automatically sets folder icons to movie posters (or artwork) found inside each folder. It can also intelligently rename common artwork files to standardized names.
- Automatic icon generation: Finds
poster.jpg,folder.png, or similar artwork in a folder and creates afolder.icofrom it - Smart renaming: Renames common artwork files to standardized names:
*-poster.*→folder.**-clearlogo.*→logo.**-fanart.*→fanart.**-disc.*→disc.**-banner.*→landscape.*cover_art.*→folder.*
- Recursive processing: Processes all subdirectories within the target folder
- Multithreaded: Uses parallel processing for faster performance
- Dry-run mode: Preview changes without making any modifications
- Custom icon size: Specify the icon size (16, 32, 48, 64, 128, or 256 pixels)
nc_icon [directory] [options]| Argument | Description |
|---|---|
[directory] |
Target directory to process (defaults to current directory) |
--dry-run, -d |
Preview what would be done without making changes |
--icon-size N, -s N |
Set icon size (16, 32, 48, 64, 128, or 256). Default: 256 |
--no-rename |
Disable automatic renaming of artwork files |
--verbose, -v |
Show detailed output during processing |
Process the current directory with default settings:
nc_iconProcess a specific directory:
nc_icon "C:\Movies\Collection"Preview changes for a directory without making modifications:
nc_icon "D:\TV Shows" --dry-runUse a custom icon size (64x64 pixels):
nc_icon --icon-size=64Process without renaming files:
nc_icon --no-renameVerbose mode showing detailed output:
nc_icon --verboseCombining multiple options:
nc_icon "E:\Media" --icon-size=128 --dry-run --verbose- Scans directories: Recursively scans the target directory for subfolders
- Renames artwork: If
--no-renameis not set, renames common artwork patterns to standardized names (poster→folder,fanart→fanart, etc.) - Finds artwork: Looks for
folder.jpg,poster.jpg,folder.png, orposter.pngin each folder - Creates icon: Converts the artwork to an ICO file centered on a transparent background
- Configures folder: Creates a
desktop.inifile and sets folder attributes to display the custom icon - Refreshes Explorer: Notifies Windows Explorer to show the new icons
After processing, nc_icon displays:
- Number of folders successfully configured
- Number of failed configurations
- Total folders processed
- Windows OS (uses Windows API for folder icon customization)
- No additional dependencies required
The project uses a custom build system. Run build.bat from the project root:
build.batWarning
Requires cl.exe, link.exe and ml64.exe to be installed and on path in order to compile and link
- The tool processes folders recursively by default
- Hidden and system folders are skipped
- The
desktop.inifile is created as a hidden system file - Target folders are marked as read-only (required for custom icons in Windows, however I have not had any problems with this)