Skip to content

Instantly share code, notes, and snippets.

@Tcip
Last active December 12, 2022 12:16
Show Gist options
  • Save Tcip/0c0435a72b0e5668b02f992895419b9a to your computer and use it in GitHub Desktop.
Save Tcip/0c0435a72b0e5668b02f992895419b9a to your computer and use it in GitHub Desktop.
Create a InternetShortcut (.url) file. Variable method.
@echo off
REM Create a InternetShortcut (.url)
SET _name="Example.com"
SET _website="https://example.com"
echo [InternetShortcut] > "%_name%.url"
echo URL=%_website% >> "%_name%.url"
REM Example.com.url