Last active
May 7, 2023 02:15
-
-
Save davidruhmann/4755933 to your computer and use it in GitHub Desktop.
[Batch] Extract the URL from a bunch of .url shortcut files.
This file contains 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 EnableExtensions | |
for %%A in (*.url) do ( | |
for /f "usebackq tokens=1,* delims==" %%X in ("%%~fA") do ( | |
if /i "%%X"=="Url" ( | |
echo(%%~nA = %%Y>>list.txt | |
echo(%%Y | |
) | |
) | |
) | |
endlocal | |
pause >nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment