Can I pass parameters to the exe?

Status
Not open for further replies.

david8

New member
I’ve registered my app as a protocol handle in the registry and would like to pass parameters like %url% via the browser - is this possible? I var_dump’d $GLOBALS, $arv & $argc and I couldn’t see anything.

Thanks
 
Last edited:
Sorry, I figured this out. I should read the documentation first :|. If anyone’s interested, here’s the HEscript:
Code:
function GetPassedParameter(p_iIndex:Integer): String;
begin
 Result := ParamStr(p_iIndex);
end;
Then in the PHP file:
Code:
<?php
print_r(exo_return_hescriptcom("MyScript.GetPassedParameter|1","HESCRIPT_MISSING"));
?>
Admin: feel free to delete this pointless thread!
 
Last edited:
Status
Not open for further replies.
Back
Top