[Gambas-user] how to 'which' with gambas
Ron Onstenk
ronstk at ...239...
Fri Aug 11 05:48:14 CEST 2006
On Friday 11 August 2006 01:48, Stefano Palmeri wrote:
>
> Hi, all.
>
> Is there a native function in Gambas that checks
> if a program exists in the user $PATH?
>
> I currently do something like:
>
> SHELL "which the_program &> /dev/null; echo $?" TO sShellout
>
> and then I check sShellout.
>
> Thanks.
>
> Regards,
>
> Stefano Palmeri
>
Try look for
IsDir: http://gambasdoc.org/help/lang/isdir
Stat: http://gambasdoc.org/help/lang/stat
File etc: http://gambasdoc.org/help/cat/file
Ron
More information about the User
mailing list