#201196 - 2010-12-17 03:17 PM
Reading File - Conditional Options
|
KIXKicks
Starting to like KiXtart
Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
|
Can I read a file when conditions on it? I want it to read the file and return the data if the Case statement is true. It works if it is in the main kix file but the list is getting rather large and I was hoping to separate the code from the list.
Such as (code is best guess)
TESTSCRIPT.KIX
$LICENSEDUSER = ReadProfileString('C:\NETWORK\SOFTWARE.INI', 'DS_CATIA_V5_19', $LICENSEVALID)
SOFTWARE.INI File
[DS_CATIA_V5_19]
Select
Case $USERNAME = "AGarcia" And $SERIALNO = "1234567" $DRIVE = "D:" $LICENSEVALID = "YES"
EndSelect
|
|
Top
|
|
|
|
#201199 - 2010-12-17 03:52 PM
Re: Reading File - Conditional Options
[Re: Glenn Barnas]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4567
Loc: USA
|
[/scratch head]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 811 anonymous users online.
|
|
|