sckruto.blogg.se

Batch file open url
Batch file open url








batch file open url batch file open url

If filecontents. # *.open files (programmatically or by hand) shouldnt be too difficult, is it?

batch file open url

# new filetype, and attach this exe to it. # new programs to the URL filetype in the default file explorer. # ↑ I added the '.open' file type because on my OS it is not trivial to attach Import os, system, re, browsers, strutils, strformat Then assign your URL files to the created executable. Install Nim and then run nim compile urlhandler.nim on it. I only tested it on my own operating system, but it should also work on Linux and macOS. As URL files are just text files, I have solved this problem by attaching a script as handler to them, which reads the URL from the file and opens that URL with the default web browser.










Batch file open url