Page 3 of 5 <12345>
Topic Options
#33081 - 2002-11-25 03:15 AM Re: I got Error code : 1208 when I run my script to map drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Try:

MapDrive("h:", "bstl_svr3", @UserID+"$$")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33082 - 2002-11-25 03:15 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
It has been recommended that you do not use %username%. Instead you should be using @UserID macro.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33083 - 2002-11-25 03:17 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
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?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33084 - 2002-11-25 03:17 AM Re: I got Error code : 1208 when I run my script to map drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What is the point of this?

\\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%

Makes no sense to me.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33085 - 2002-11-25 04:08 AM Re: I got Error code : 1208 when I run my script to map drive
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Hmmm... I'm lost here as well. I don't see him using any UDF So what is up with trying to use MapDrive.

I see Howard told him a LONG TIME AGO to try using MapDrive, but I don't see it here and I don't see from this thread that the user knows how to use a UDF in the first place.

For simplicity until the user learns UDFs he should probably stick with using the USE command that is built into KiXtart.

Top
#33086 - 2002-11-25 04:13 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
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33087 - 2002-11-25 04:14 AM Re: I got Error code : 1208 when I run my script to map drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I suspect there is a UDF defined somewhere (not showing the entire script) since he claims it works on NT. His real problem is that he doesn't have a grasp of env vars.

If the %USERNAME% var does not exist on Wintendo, winset.exe username=%USERNAME% won't do squat.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33088 - 2002-11-25 04:14 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 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 Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33090 - 2002-11-25 04:30 AM Re: I got Error code : 1208 when I run my script to map drive
NTDOC Administrator Offline
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. [Wink]

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 [Big Grin] [Big Grin] [Big Grin]

Top
#33091 - 2002-11-25 04:31 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
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?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33092 - 2002-11-25 04:34 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
%USERNAME% for Client is NT,2000 and XP only?

Logon to Server account AD!

Pech

Top
#33093 - 2002-11-25 04:35 AM Re: I got Error code : 1208 when I run my script to map drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
HB,
I think you misunderstood. He said he fixed it by joining AD.

Doc,
What would be the point of the last 5 days. There are often existing UDFs that get updated in place. Those should then be reported on as well.

Also, isn't updating every 2 hours a bit of overkill? Once a day should do it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33094 - 2002-11-25 04:39 AM Re: I got Error code : 1208 when I run my script to map drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Probably the Thai-English... [Confused]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33095 - 2002-11-25 04:40 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
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33096 - 2002-11-25 04:46 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
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33097 - 2002-11-26 03:10 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
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
#33098 - 2002-11-26 03:12 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
you should not even try in the first place to use network with me!
_________________________
!

download KiXnet

Top
#33099 - 2002-11-26 03:16 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
anyway, you are starting kix with selecting the os...
you should in all cases if the os is not nt/xp/w2k start the win9x part.

currently, you are setting me as unknown and dropping it of.
_________________________
!

download KiXnet

Top
#33100 - 2002-11-26 03:17 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
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 3 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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.066 seconds in which 0.026 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