Hi,

I want to make a script that reads an ini-file in which there are commands. Those commands have to be executed. No problem when I use drive-letters: s:\calc.exe
But in one command there is an environment variable (%qlserver%) which contains \\server1.
So I want to execute %qlserver%\store\calc.exe

But nothing happens. The "shell $cmd" isn't executed in the line with the %qlserver%.
When I put an '? $cmd' in front of it I can see the right command.

So I have an logon.ini file with
%qlserver%\store\calc.exe

and a test.kix with
If Open (1,@LSERVER + "\store\logon.ini",2) = 0
$cmd = ReadLine(1)
While @ERROR <> -1 ;eof
Shell $cmd
$cmd = ReadLine(1)
Loop
$ = Close (1)
EndIf

What am I doing wrong?