No, you do want ot use quotes all the time, otherwise you might develop bad scripting habits. Cleaned up script would look like this:code:
CLS
cls
? 'Hello '+ @FULLNAME
SETTIME '\\BSISRVE01'
if @ERROR
? 'SETTIME: Error '+@ERROR+' - '+@SERROR
else
? 'You local systems time has been synchronized with the server.'
endif
? 'Current time = ' + @time
;Delete current drive mappings
USE '*' /DELETE /PERSISTENT
USE H: '\\titan\engineering'
USE M: '\\BSISRVE01\m2mdata'
USE P: '\\BSISRVE01\public'
USE S: '\\titan\sales'
USE U: '\\titan\disk1'
USE Z: '\\titan\'+@USERID
IF InGroup('test')
use F: '\\bsisrve01\acct'
ENDIF
USE LIST
? 'Press any key to continue'
get $key
exit 0
Corrected quotes. ![[Embarrassed]](images/icons/blush.gif)
[ 03. July 2003, 16:54: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.