Build the strings ahead of time and print them to the screen for evaluation:
code:
$driveletter='*'
$UNC='\\'+TRIM($recordset[$row,1])+'\IPC$$'
$user='/user:'+TRIM($recordset[$row,2])
$password='/password:'+TRIM($recordset[$row,3])
? $driveletter
? $UNC
? $user
? $password
use $driveletter $UNC $user $password
? 'Error = '+@ERROR+' - '+@SERROR

_________________________
There are two types of vessels, submarines and targets.