This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set IMAGE=favicon.png | |
set OUTPUT=favicon.ico | |
set SIZES=16 32 64 128 192 256 | |
:: Create a temporary directory for resized images | |
set TEMP_DIR=%~dp0temp_ico | |
mkdir "!TEMP_DIR!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set IMAGE=favicon.png | |
set SIZES=16 32 64 128 180 192 256 | |
for %%s in (%SIZES%) do ( | |
magick convert "%IMAGE%" -resize %%sx%%s "icons/appicon-%%s.png" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir /b /o:n /s /a:-d > onlyfilespls.txt | |
From https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/dir | |
/b: Displays a bare list of directories and files, with no additional information. The /b parameter overrides /w. | |
/o:n: Sorts the output according to name (alphabetically). | |
/s: Lists every occurrence of the specified file name within the specified directory and all subdirectories. | |
/a:-d: Displays only the names of those files. -d means excluding directories. |