Kathy:

I rewrote the script a little bit, please see whether this works for you and please read the comments.
code:
Break on

; The next lines of code was taken from the forum to help with
; the Netware logon problem NPORDER
:NPORDER
$regkey='HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\'
$MS = ReadValue($regkey+'MSNP32\NetworkProvider', 'CallOrder')
$NW = ReadValue($regkey+'NOVELLNP\NetworkProvider', 'CallOrder')
if $MS = '00000040' AND $NW = '00000020'
$MS = WriteValue($regkey+'MSNP32\NetworkProvider', 'CallOrder', '00000020', 'REG_BINARY')
? ''+@ERROR+' - '+@SERROR
$NW = WriteValue($regkey+'NOVELLNP\NetworkProvider', 'CallOrder', '00000040', 'REG_BINARY')
? ''+@ERROR+' - '+@SERROR
; --- Reboot the PC? ---
RUN "Rundll32.exe shell.dll,RestartDialog"
ENDIF

; The next lines are to keep the window from miminizing
$regkey = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon'
IF val(ReadValue($regkey, 'RunLogonScriptSync'))<>1
$rc=WriteValue($regkey, 'RunLogonScriptSync', '1', 'REG_DWORD')
? ''+@ERROR+' - '+@SERROR
ENDIF

; The next lines of code are for the Test group
; You cannot use more than 20 (12?) characters for Group Names under Windows 9x,
; please see http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=1;t=005392
; You can also not deep map under Windows 9x, please see
; the KiXtart Manual Appendix A
if ingroup("TX Mapcon Test")
Use O: /delete /PERSISTENT
USE O: '\\Tx-Apps\Apps' /PERSISTENT

; The next lines of code are to put a value in the registry
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce'
$regentry='MapConIcon'
$regvalue='\\tx-pdc\netlogon\short2.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
? ''+@ERROR+' - '+@SERROR
endif

exit 0



[ 17. September 2002, 19:53: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.