Hello guys,
Thanks for the response but I will try to clarify what we do and how we work.
Our application send a reminder's email to employees for doing some job. Join with the email a file.IVL with some data (eg : FILE.ini M 40 1 10011000 D I-PO-ABC-003 1 0 0). As you can see, the file.IVL is dynamic and a new one is generate for each need.
When the employee double clic the .IVL, our application is open and then read the file.IVL(with path) to know what to do (enter in a specific window and start an action).
The way we set to open the .IVL is with registry :
reg add "HKCR\.IVL" /v "" /t REG_SZ /d Software_IVL /f
reg add "HKCR\Software_IVL " /v "" /t REG_SZ /d "Raccourcies du client Software" /f
reg add "HKCR\Software_IVL \DefaultIcon" /v "" /t REG_SZ /d %AppData%\PBApps\Applications\server\Software.exe /f
reg add "HKCR\Software_IVL \shell\open" /v "" /t REG_SZ /d "Open Document" /f
reg add "HKCR\Software_IVL \shell\open\command" /v "" /t REG_SZ /d ""%AppData%\PBApps\Applications\server\Software.exe" -r "%1"" /f
So, in the Event PFC_Open, we do :
if as_commandline <> "" and trim(as_commandline) <> '-r' and trim(as_commandline)<>'DebuggerTool=true' then
ls_arg = of_get_argument( as_commandline )
if ls_arg = "-r" then // raccourci
of_raccourci( as_commandline )
elseif ( ls_arg = "-f" ) then
is_isoini = of_setini( as_commandline ) // " pour of_get_argument
// dans of_setini
ls_arg = of_get_argument( as_commandline ) //Pour enlever le ini de la commande -f précédente
else
// commandline non reconnu
end if
if as_commandline <> "" and trim(as_commandline) <> '-r' then
ls_arg = of_get_argument( as_commandline )
if ls_arg = "-r" then // raccourci
of_raccourci( as_commandline )
end if
end if
else
is_isoini = of_setini( '' )
end if
Let me know if you need more details.
Regards.
Romuald