[Gambas-user] read commandline invocation

Doriano Blengino doriano.blengino at ...1909...
Mon Dec 22 17:31:03 CET 2008


gambas at ...1938... ha scritto:
> Am Sonntag, 21. Dezember 2008 02:17:56 schrieb Joshua Higgins:
>   
>> Probably a stupid question, but I can't figure it out :S
>> How do I get my Gambas program to read how it was invoked from the command
>> line?
>>
>> Thanks.
>>     
> I think Application.Read is your friend. ;-)
>   
Application.Args[index] is what you are looking for... "print 
application.args[0]" will print the command name (/usr/bin/test.gambas 
for example).

Regards,
Doriano




More information about the User mailing list