Seite 1 von 1

GetOutStreamFromSection

Verfasst: 15 Feb 2013, 15:06
von bobzbobz
Hi

I am trying to get the model of a PC, which will determine if and how the package will be installed.

I am using GetOutStreamFromSection() and takeFirstStringContaining() to determine what model the PC is, but it is not working.
I then wanted to try the example from the Winst-manual, but cant get that working either - what am i doing wrong??

http://download.uib.de/opsi_stable/doc/ ... s-prodprop

This is my code:

Code: Alles auswählen

[Actions]
Set $list$ = GetOutStreamFromSection ('DosInAnIcon_netuse')

[DosInAnIcon_netuse]
net use
As far as i can see this is identical to the example..
But i get this error when trying to run the script:

Code: Alles auswählen

Section Actions (Command in line 28):

$list$ = GetOutStreamFromSection ('DosInAnIcon_netuse')

getOutStreamFromSection ('DosInAnIcon_netuse') illegal String expression

Re: GetOutStreamFromSection

Verfasst: 15 Feb 2013, 21:48
von SisterOfMercy
And how about this:

Code: Alles auswählen

Set $list$ = GetOutStreamFromSection ("DosInAnIcon_netuse")


Could be worth a shot.. :oops:

Re: GetOutStreamFromSection

Verfasst: 18 Feb 2013, 08:06
von bobzbobz
Already tried that ;)

also tried

Code: Alles auswählen

Set $List$ = GetOutStreamFromSection (DosInAnIcon_netuse)

Re: GetOutStreamFromSection

Verfasst: 19 Feb 2013, 13:57
von bobzbobz
Anyone from UIB got some sugestions? Am i doing it wrong?

Best Regards,
Soren

Re: GetOutStreamFromSection

Verfasst: 20 Feb 2013, 11:58
von bobzbobz
Okay, now i solved the problem..

I had set the $list$ as a DefVar in stead of DefStringList >.<