That's what you've been provided!

Also, it seems you haven't provided the complete script, thus problems in other sections can cause this particular section to fail.

You might also want to look into the use of any of the MapDrive() UDFs.

Finally, execute the code below from the command-lien using KIX32.EXE adn report back:
Code:

$iRC=setoption('Explicit','on')
$iRC=setoption('NoVarsInStrings','on')

If InGroup("EVERYONE")
USE S: "\\KC-dc01\SWAPS$"
if @error
? "Couldn't map drive S:"
? "ERROR: " @error " " @serror
sleep 5
endif
USE G: "\\FS1\ENG\SCANS$"
if @error
? "Couldn't map drive S:"
? "ERROR: " @error " " @serror
sleep 5
endif
EndIf

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