Page 2 of 5 <12345>
Topic Options
#33061 - 2002-11-22 04:28 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
Kent made an error using MapDrive, there should not be any "\\"'s with the server name.

Should be like:

MapDrive("k:", "bstl_svr3", "users$")

[ 22. November 2002, 04:43: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33062 - 2002-11-22 04:29 AM Re: I got Error code : 1208 when I run my script to map drive
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Pech,

To be honest, we should look at what Howard asks in the Microsoft Article. I think he is 100% correct in the sense that:
You can connect to the drive, even though delayed. If you couldn't, it would be a permissions issue.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33063 - 2002-11-22 04:50 AM Re: 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
To Kent

I just change mapdrive command line as follow;

MapDrive("k:", "bstl_svr3", "users$")

MapDrive("i:", "bstl_svr3", "DocEDP$")
? "mapping i: to groupshare: "
MapDrive("j:", "bstl_svr3", "dept$")
? "mapping j: to groupshare: "
MapDrive("k:", "bstl_svr3", "users$")
? "mapping i: to groupshare: "
MapDrive("l:", "bstl_svr3", "Software$")
? "mapping i: to groupshare: "
SHELL "\\bstl_svr1\ofcscan\autopcc.exe"

BUT
I still got an error in Map drive line command
Failed Error 1208
Not found logon.log on %temp%

Pech

Top
#33064 - 2002-11-22 04:53 AM Re: I got Error code : 1208 when I run my script to map drive
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Pech,

Please go back to Howard's Message.

>> We need to start at square one.

And review - 267309

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33065 - 2002-11-22 11:28 AM Re: 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
How I can config my server for give user sync clock with my PDC...

I don't know why If I wait a few a minute and run script by manual It works. But At first time failed!

PEch

Top
#33066 - 2002-11-23 12:54 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
Yes we know that:
quote:
I don't know why If I wait a few a minute and run script by manual It works. But At first time failed!
You have to start displaying that you understand the basics of troubleshooting a problem for us to assist you. Restating the symptom of your problem is of no value at this time.

I, along with others, have spent a great deal of time attempting to assist you, but you appear to be very uncooperative in that you do not answer our questions or provide any detailed information about your environment. Trying to get anything of value from you is like pulling teeth. [Frown]

You have a problem with the interaction of your clients and server(s). You need to learn more about the operating systems and network configuration. We can not begin to understand the problem without your help.

The KiXtart code you executed to good there is no problem there.

Again, I have asked specific questions above for which you have not provided answers. If you do not want to help yourself, please don't waste our time.

You can research the configuration of time on the Microsoft web site by starting with a search for 'w32time', 'time', or just reading the KB article I posted above and then following the links.

[ 22. November 2002, 12:57: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33067 - 2002-11-22 03:33 PM Re: I got Error code : 1208 when I run my script to map drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You might also want to set up a little test-lab with e.g. just two computers and experiment if you have the resources/time.
_________________________
There are two types of vessels, submarines and targets.

Top
#33068 - 2002-11-23 08:55 AM Re: 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
To: Kent


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

%WINDIR%\PUTINENV.EXE L
%WINDIR%\winset computername=%COMPUTERNAME%
%WINDIR%\winset username=%USERNAME%
%WINDIR%\winset LANGROUP=%LANGROUP%
%WINDIR%\winset LOGONSERVER=%LOGONSERVER%

:: --- DISPLAY THE USER NAME/DOMAIN
ECHO HELLO %USERNAME%!
ECHO Welcome to %LANGROUP%, Inc. Windows 9x Domain Environment

%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9X.kix <<<<<< Cannot run >>>>>>

goto end

:unknown_os
:end
exit

--------------------
Now I found and fixed the problem with W32Time but I have some question about those command line ...

Why That command cannot run.. %LogonServer% cannot find? What happen on Window9X parameter.

But In Windows2000 no error.

Thanks
Pech

Top
#33069 - 2002-11-23 09:49 AM Re: 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
Why, the command windows doesn't disappear when script run finished? When use click and enter the windows will be disappear!

PEch

Top
#33070 - 2002-11-23 11:09 AM Re: 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
How to set automatic close windows command run script when run script finished.

I use : EXIT but windows has still untill press enter. Why?

Pech

Top
#33071 - 2002-11-23 11:20 AM Re: I got Error code : 1208 when I run my script to map drive
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Quit() will stop script execution ... tried this ?
_________________________



Top
#33072 - 2002-11-23 01:35 PM Re: I got Error code : 1208 when I run my script to map drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
As outlined in the KiXtart Manual, the NETLOGON share is redirected to the Z: drive under Windows 9x. The Manual also contains an example login.bat that works with Windows 9x/NT/2000. Please note that the '%0..\' moniker is not necessary under Windows NT\2000\XP and actually breaks under Windows XP.

Thus the Windows 9x call would be either of the next two lines with the first one the preferred one:
code:
%0\..\kix32.exe %0\..\PLogon9X.kix 
z:\kix32.exe z:\PLogon9X.kix

Why do you use two different login scripts instead of differentiating between OS versions within the same script?

[ 23. November 2002, 13:38: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#33073 - 2002-11-24 06:56 AM Re: 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
Ok I'll follow as your advice. One Script for any OS.
But I don't know why script running windows is not automatic close when script run finished.
It still open , user must press enter to close it! why not?

Pech

Top
#33074 - 2002-11-24 06:59 AM Re: I got Error code : 1208 when I run my script to map drive
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
one possibility is that you still got:
?? "press any key to close window"
get $

in there. we don't know your current code and I'm not sure if you know it either.

[ 24. November 2002, 07:00: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#33075 - 2002-11-24 09:44 AM Re: 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
OK I understand. I think ... $ is wait for reply from user to press any key.

Pech

Top
#33076 - 2002-11-24 09:48 AM Re: 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
OK I understood.
I delete Press any key but I forgot to delelet line..
$ <--is wait for reply from user to press any key.
Right?
Pech

Top
#33077 - 2002-11-24 09:48 AM Re: I got Error code : 1208 when I run my script to map drive
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
[Smile]

actually "$" is just like "$myvar"
it's variable with name of nothing.

if you see manual for get ( http://helpdesk.kixtart.org/KixManual2001/Commands/get.asp )
you see that it is command which says, dude hey wait for anykey. gets then is for line (which requires enter)

well, what more you meet these, more you learn, right?
_________________________
!

download KiXnet

Top
#33078 - 2002-11-24 09:49 AM Re: 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
OK I understood.
I delete "Press any key to close" but I forgot to delelet line..
get $ <--is wait for reply from user to press any key.
Right?
Pech

Top
#33079 - 2002-11-24 09:51 AM Re: I got Error code : 1208 when I run my script to map drive
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now, I would ask you to learn forum also.
deleting your doubled (tribled actually) post happens by clicking the edit post button  - and once in, clicking the delete post checkbox.
_________________________
!

download KiXnet

Top
#33080 - 2002-11-25 03:08 AM Re: 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
PLogon.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\PLogonNT.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=%USERNAME%
\\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

rem %LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9X.kix

\\BSTL_SVR1\NETLOGON\kix32.exe \\BSTL_SVR1\NETLOGON\PLogonNT.kix

goto end

:unknown_os
:end
exit
--------------------------------------------

PLogonNT.kix
-------------------------------------------------

? @kix
? @dos
? @ldrive
;;USE "*" /delete ;-- commented this out as the MapDrive function takes this into account
;;? "delete persistent mappings: "
MapDrive("h:", "bstl_svr3", "%username%$")
? "mapping h: to homeshare: "
-------------------------------------------------

I can not map drive H: on Windows 9x..
Error code : 67
In Windows NT,2000 and XP no problem...

Pech

Top
Page 2 of 5 <12345>


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

Who's Online
0 registered and 329 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.074 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

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