2
I'm trying to use a .bat file as a protocol handler. The protocol URL for example is testapp://close
and I set the protocol to launch "C:\test.bat" "%1"
in the registry.
The test.bat
file
@echo off
echo %1
pause
exit 0
Essentially what I want to do is just pass the parameter in the URL close
to some application to execute C:/someapp.exe close
however the %1
parameter I get is the full url testapp://close/
. How can I parse the close
parameter out of the %1
variable using only native Windows commands?
Try this:
explorer.exe testapp://close
– Biswapriyo – 2019-01-16T16:47:27.047