I\'m having the most fun trying to replace a substring in one line of code for a windows registry key
[HKEY_CLASSES_ROOT\\PING\\shell\\open\\command]
@=\"C:\
String replace is only possible with variables not with parameters like %1
.
Something like this could be a starting point
set "var=%1" & call var=%%var:ping://=%%
In the registry it could look like
...
[HKEY_CLASSES_ROOT\PING\shell\open\command]
@="cmd /k ( set \"var=%1\" & call set var=%%var:ping://=%% & call set var=%%var:/=%% & call ping.exe %%var%% -t)"