SETTIME should only be used for Windows 9x. It requires at least 'Power User' privileges under Windows NT/2000/XP/2003 and should not be used at all. Instead the Windows Tiem Service sahould be installed, porperly configures, and be used.

Please apply proper quotes around strings, e.g.
Code:

$userdir='\\wsrv01\'+@USERID+'$'


Also, alwasy use
Code:

$rc=setoption('explicit','on')
$rc=setoption('novarsinstrings','on')


in the script header.

See also Why does the console display zeros and ones (amongst others)?
_________________________
There are two types of vessels, submarines and targets.