Skip to content

Instantly share code, notes, and snippets.

@davidruhmann
Last active May 7, 2023 02:15
Show Gist options
  • Save davidruhmann/4755933 to your computer and use it in GitHub Desktop.
Save davidruhmann/4755933 to your computer and use it in GitHub Desktop.
[Batch] Extract the URL from a bunch of .url shortcut files.
@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