But that'd be a bit recursive, no? Since it would invoke the http method handler, and that's what we're actually using as a hook?
Ideally, the script should snarf whatever is in that regkey when it starts, and if it's not itself, should save it and set itself to be the handler, and exit. Then, whenever it's invoked in future, it should pass the arguments by substituting the "%1". That should cut out the need to set the registry entry, as long as there's some way for a VB script like that to find its' own filename.
EDIT: just discovered "WScript.ScriptFullName" ... will play a bit with it.
Ideally, the script should snarf whatever is in that regkey when it starts, and if it's not itself, should save it and set itself to be the handler, and exit. Then, whenever it's invoked in future, it should pass the arguments by substituting the "%1". That should cut out the need to set the registry entry, as long as there's some way for a VB script like that to find its' own filename.
EDIT: just discovered "WScript.ScriptFullName" ... will play a bit with it.
Comment