Is there a function which returns the command-line arguments specified when the program was launched.
text.exe ABC
prg
Local cTest :=""
cTest:=command()
Regards
Otto
command-line arguments
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: command-line arguments
This is a sample:
EMG
Code: Select all
FUNCTION MAIN( cPar1, cPar2, cPar3 )
LOCAL i
? cPar1, cPar2, cPar3
?
FOR i = 0 TO HB_ARGC()
? HB_ARGV( i )
NEXT
?
RETURN NIL
-
- Posts: 142
- Joined: Sun Oct 09, 2005 10:59 am
Code: Select all
#include "FiveWin.Ch"
FUNCTION MAIN(...)
*************
LOCAL Arr := Hb_Aparams()
AEVAL(Arr,{|j|msginfo(j)})
RETURN