#33082 - 2002-11-25 03:15 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
It has been recommended that you do not use %username%. Instead you should be using @UserID macro.
|
Top
|
|
|
|
#33083 - 2002-11-25 03:17 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
After all our previous input regarding your 1208 error, you never said what the real problem was or how you resolved it. Could you please state clearly was was wrong and how you fixed it?
|
Top
|
|
|
|
#33086 - 2002-11-25 04:13 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
DOC, Kent wrote him some code that uses MapDrive (somewhere in this thread).
The fact we never get complete feedback or code makes helping difficult. [ 25. November 2002, 04:14: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33088 - 2002-11-25 04:14 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
OK I change the command line to check Version of Client
NT , 2000 use.. > %username% 9x use.. > @userid
How I can fixed the error code 1208 ? > I reconfig my File Server from member server (no AD) to Windows with AD.. and join to Windows 2000 Server AD.
Now It can sync clock with PDC.
Thanks for every one
Pech
|
Top
|
|
|
|
#33089 - 2002-11-25 04:19 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Pech, do you understand NT domains and domain architecture?
You should not be using %username% for any OS. Why do insist on continuing to use it? Use @userid for all OS's.
What account is used to logon? A workstation account or domain account? [ 25. November 2002, 04:19: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33090 - 2002-11-25 04:30 AM
Re: I got Error code : 1208 when I run my script to map drive
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
All right... I'm leaving this thread. I can see I have nothing to add that you guys can't already handle.
Howard,
If you get bored, you could update the PERL code to grab and create another webpage for UDFs created in the last 5 days
|
Top
|
|
|
|
#33091 - 2002-11-25 04:31 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Just a few post above you said the NT/W2K/XP was working...Now you have an error 1208 again. What does work and what does not work? On what OS's do you get the 1208 error? What are you attempting to do when it occurs?
|
Top
|
|
|
|
#33092 - 2002-11-25 04:34 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
%USERNAME% for Client is NT,2000 and XP only?
Logon to Server account AD!
Pech
|
Top
|
|
|
|
#33095 - 2002-11-25 04:40 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
After re-reading, I think what I thought was a question was the answer. My confusion level is diminshing. I hope. [ 25. November 2002, 04:40: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33096 - 2002-11-25 04:46 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Pech, I apologize for confusion and the last couple posts.
Please repost your current problems so that we can properly address them.
Remember that the KiXtart macros work on both Win9x and NT computer. Your code should try to use the same commands and macros where ever possible. The use of environment variable such as %username% should be avoided in your KiXtart scripts if possible.
|
Top
|
|
|
|
#33097 - 2002-11-26 03:10 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
code:
Logon.bat ---------------------------------------------- echo off 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
echo on
:win_NT @TITLE BRIDGESTONE SALES (THAILAND) CO.,LTD. Logon Script ECHO HELLO %USERNAME%! Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\RunScript.kix
goto end
:win_9X
echo ON
REM %WINDIR%\PUTINENV.EXE L \\BSTL_SVR1\NETLOGON\winset.exe computername=%COMPUTERNAME% \\BSTL_SVR1\NETLOGON\winset.exe username=@USERID \\BSTL_SVR1\NETLOGON\winset.exe LANGROUP=%LANGROUP% \\BSTL_SVR1\NETLOGON\winset.exe LOGONSERVER=%LOGONSERVER%
ECHO OFF REM %WINDIR%\winset computername=%COMPUTERNAME% REM %WINDIR%\winset username=%USERNAME% REM %WINDIR%\winset LANGROUP=%LANGROUP% REM %WINDIR%\winset LOGONSERVER=%LOGONSERVER%
echo on :: --- DISPLAY THE USER NAME/DOMAIN ECHO HELLO %USERNAME%! ECHO Welcome to %LANGROUP%, Windows 9x Domain Environment
\\BSTL_SVR1\NETLOGON\kix32.exe \\BSTL_SVR1\NETLOGON\RunScript.kix
goto end
:unknown_os :end exit
-------------------------------------------------
RunScript.kix -------------------------------------------------
code:
? @kix ? @dos ? @ldrive ;;USE "*" /delete ;-- commented this out as the MapDrive function takes this into account ;;? "delete persistent mappings: "
IF "%OS%" == "Windows_NT" MapDrive("h:", "bstl_svr3", "%username%$") ? "mapping h: to homeshare: " else MapDrive("h:", "bstl_svr3", "@USERID$") ? "mapping h: to homeshare: " endif
IF Ingroup ("EDPADMIN") = 1 MapDrive("i:", "bstl_svr3", "DocEDP$") ? "mapping i: to groupshare: " MapDrive("j:", "bstl_svr3", "dept$") ? "mapping j: to groupshare: " MapDrive("k:", "bstl_svr3", "users$") ? "mapping k: to groupshare: " MapDrive("l:", "bstl_svr3", "Software$") ? "mapping l: to groupshare: " SHELL "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF
rem GET $
EXIT
--------------------------------------------------
Now I have an problem with Client is Windows ME! Windows ME cann't map any drive from this scipt!
How I can detect when client is Windows ME?
Pech
{edit} added code tags - Bullock [ 26. November 2002, 03:13: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33100 - 2002-11-26 03:17 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Pech, let's start small first.
In the following code: code:
IF "%OS%" == "Windows_NT" MapDrive("h:", "bstl_svr3", "%username%$") ? "mapping h: to homeshare: " else MapDrive("h:", "bstl_svr3", "@USERID$") ? "mapping h: to homeshare: " endif
The "IF" construct is not needed as both MapDrive statements are identical.
You should replace the above code with: code:
MapDrive("h:", "bstl_svr3", @USERID + "$$")
[ 26. November 2002, 03:17: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 248 anonymous users online.
|
|
|