Guys -
I am unclear on how Kix DIR command works, or is supposed to work.My goal is to have it scan a DIR, writing each file/dir encountered as a variable. Then, the variable will be evaluated for a specific condition.
For example, my test below
code:
$SrcDrv = "C:"
$SrcDir = "TEMP"
$x=0
$File = DIR ("$SrcDrv\$SrcDir\*.*")
WHILE @ERROR = 0 AND $Tmp <> 1 AND $x < 10
? "Err: @ERROR / $File"
? "Fil: $File"
?
SELECT
CASE UCASE ("$File") = "ESCAN")
$Tmp = 1
CASE (1)
DIR ()
$x = $x+1
ENDSELECT
LOOP
I would expect the variable $File to contain the results of this scan, and print on the screen display where noted. In actuality, the lone '?' displays the DIR result, and the variable $File is blank. If you leave a single line to display (? "Fil: $File") it will appear the variable contains the DIR result, but this is false.So, can anyone enlighten me on this?
Thanks.
Bill