Have put in a part of the script here:

:ConnectDrive
USE $DriveLetter $Path

DEBUG ON
If SETOPTION("NoVarsInStrings", "OFF") = 0 Endif
? "TEST"
? "the printer $DriveLetter $Path"
Vartype($Driveletter)

If @ERROR = 0
Color n/n ? "the printer $DriveLetter $Path"
Else
If SetConsole ("SHOW") = 0 Endif
Color r+/n ? ? "Warning the following drive failed to connect:" ? "$DriveLetter $Path" ?
Sleep 5
Endif

DEBUG OFF

This part is printed correct the first time.
? "TEST"
? "the printer $DriveLetter $Path"

After the "If @ERROR = 0" part nothing is printed anymore and because i give a loop in the script everything including the ? "TEST" part is not printed anymore after the first loop.

The VarTypeName($Printer) returns 8, that would be a string.

The drive letter and the path i get out of a query script like this:

[Global Group]
Drive1="M: \\server01\sharename"
Drive2="Q: \\server02\sharename"

Downloaded the latest version from here 4.20 just to be sure. same results :-(

hope this helps a bit...

[ 04. July 2003, 13:03: Message edited by: dm330 ]
_________________________
greetz dm330, from the Netherlands