Page 1 of 1 1
Topic Options
#33039 - 2002-11-21 03:44 AM I got Error code : 1208 when I run my script to map drive
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
I got an error code: 1208 when I run script to map drive. but I wait a few minute and try to run script by manual it works-no any error.
An error occurred with Windows XP, 2000 client only. In Windows 9X doesn't error.

----------------------------------------
PLogon.bat
----------------------------------------
rem ::SETLOCAL
VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_9X

GOTO unknown_os

:win_NT
@TITLE Company A / Company B NT Logon Script
ECHO HELLO %USERNAME%!
Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment

%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogonNT.kix

goto end

:win_9X

%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9x.kix
exit
------------------------------------------

PLogon9X.kix
------------------------------------------
? "Setting Win9x variables...please, wait."
SHELL "winset.exe USERNAME=@USERID"

use "*" /delete
? "Map Network drive (User)..."
use h: "\\bstl_svr3\@USERID$"

IF Ingroup ("MK11") = 1
use i: "\\bstl_svr3\DocMK11$ /no"
use j: "\\bstl_svr3\ShareDoc /no"
ENDIF
exit
-----------------------------------------------

PLogonNT.kix
------------------------------------------
? @kix
? @dos
? @ldrive
use "*" /delete
? "delete persistent mappings: " @error
use h: "\\bstl_svr3\%username%$"? "mapping h: to homeshare: " @error
IF Ingroup ("EDPADMIN") = 1
use i: "\\bstl_svr3\DocEDP$"? "mapping i: to groupshare: " @error
shell "\\bstl_svr1\ofcscan\autopcc.exe"
ENDIF
? "logonscript ran"
?? "press any key to close window"
get $
-----------------------------------------------

Please help me again.

Pech

Top
#33040 - 2002-11-21 03:50 AM Re: I got Error code : 1208 when I run my script to map drive
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Closed thread Duplicate thread.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 756 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.034 seconds in which 0.016 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org