Sep 1, 2002 #1 TheSaviour Programmer Joined Sep 14, 2002 Messages 13 Location GB How can I implement command line options for my application for example C:\myapp.exe -restart Can anyone show me an example?
How can I implement command line options for my application for example C:\myapp.exe -restart Can anyone show me an example?
Sep 1, 2002 #2 mikeEd Programmer Joined Nov 26, 2001 Messages 160 Location GB Code: if paramcount > 0 then //params have been passed if ParamStr(1) = 'Restart' then etc. ParamStr(0) is always the path to your executable. Upvote 0 Downvote
Code: if paramcount > 0 then //params have been passed if ParamStr(1) = 'Restart' then etc. ParamStr(0) is always the path to your executable.
Sep 1, 2002 Thread starter #3 TheSaviour Programmer Joined Sep 14, 2002 Messages 13 Location GB Thanks mikeEd Upvote 0 Downvote