And after even more testing.....code:
Function MapDrive($a,$b)
$MapDrive = ""
use $a /d ; <---this line is causing the problem some how???
$nul = execute('exit(@@error)')
if @error = 0
$nul = execute('? "$tab$a mapped to $b"')
$mapdrive=0
exit(0)
ELSE
$nul = execute('? "$tabThere was Error#@error mapping $drive to $b$cr$tab@Serror"')
$mapdrive=@error
exit(@error)
endif
endfunction
$Drive = readprofilestring("@curdir"+"test.ini","test","drive")
$unc = readprofilestring("@curdir"+"test.ini","test","UNC")
$nul = mapdrive($drive, $unc)
it is the
use a$ /d
line that is causing kix to bomb on EXECUTE command. Not just using @@error, but i can't EXECUTE() any variable. I tried just a simple
execute('? $$a')
no luck.
If I comment out the "use a$ /d " line, i can "execute('? $$a')" with out any errors.
Bryce
------------------
kix.isorg.net