Running program with input parameters from windows shortcut

Posted by alycidon on 05-Aug-2005 04:07

Hi All,

I am trying to run a program with input parameters from a windows shortcut and cannot seem to get the syntax correct, that is assuming it can be done. Does anyone know the correct format in the shortcut to run the program. Also i will need to do this via a Unix script as well any ideas on this one would also be appreciated.

cheers

Mark

All Replies

Posted by Admin on 29-Aug-2005 03:07

You need to add the -param option to the commandline followed with whatever parameters you want to pass.

From the 4gl use the SESSION:PARAMETERS statement to read the value. This also works on Unix.

e.g.

prowin32 -p myprog.p -param "hello,world;these are my params"

This thread is closed