[Gambas-user] gambas3 --system-information in a gambas program

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat May 21 23:35:10 CEST 2022


Weird, it does work here. What happens if you open terminal and input
"gambas3 --system-information"?

Jussi

On Sun, May 22, 2022 at 12:24 AM Bruce Steers <bsteers4 at gmail.com> wrote:

>
> If i use this code...
>
> Public Sub Button1_Click()
>
>   Dim sVar As String
>   Shell "gambas3 --system-information" Wait To sVar
>   Print sVar
>   File.Save(User.Home &/ "gambas-info.txt", sVar)
>
> End
>
> It prints nothing and saves nothing to a file?
>
> i tried using Exec [] and even shell "echo $(gambas3 --system-information)"
> also tried 2>&1 suffix.
>
> just can't seem to get it to work :-\
> any idea why?
>
> Cheers
> BruceS
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220522/8e6596bc/attachment.htm>


More information about the User mailing list