Page 1 of 1 1
Topic Options
#42006 - 2003-06-24 04:53 PM Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
Hello, i'm extremely new to this entire thing, so here goes. My company currently has a script running that maps three network drives on all of the Win 98 clients. Of course all the new PC's we are getting now have XP on them so i am currently trying to set a script up that will map the 3 network drives anytime someone logs into the computer.

The first 2 drives work just fine for me everytime no matter who logs in. However the 3rd drive is a 'personal' drive that only the person who logs in can see. In the past the script had used H: \\server location\@userid and the drive would map based on the person who logged in.

This no longer seems to work as i stated before that the first 2 drives will map but the third one always returns an error that says 'Network Path not Found'. I am very confused at this point so if anyone has any info on something for me to try i would greatly appreciate it.

Top
#42007 - 2003-06-24 05:24 PM Re: Mapping Network Drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
If the share contains a '$' sign, then the '$' sign needs to be doubled up. This is documented in the KiXtart Manual.
_________________________
There are two types of vessels, submarines and targets.

Top
#42008 - 2003-06-24 06:24 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
Thanks for the feedback, unfortunetely there isn't a $ in the problem line. One other thing that i noticed is that the old script we run had it set as @userid and that determined the drive to be mapped, is it possible that the @userid is no longer recognized or it has been changed to a new command that i should put in there instead?

The only thing that brought this to mind was that if i just put in the actual login ID of the person it will map the drive just fine so it leads me to believe that it will work there is just something wrong with the @userid part. Thansk again

Top
#42009 - 2003-06-24 06:32 PM Re: Mapping Network Drive
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Well, your statement...
quote:
[sic] The 3rd drive is a 'personal' drive that only the person who logs in can see. In the past the script had used H: \\server location\@userid and the drive would map based on the person who logged in.
...would indicate that the share is hidden. The fully-qualified UNC would be...

\\server location\@userid$

...for a typical implementation of a hidden share. Thus, the need to double up the "$" character when mapping.
code:
Use H: '\\server location\'+@userid+'$$'


Top
#42010 - 2003-06-24 06:39 PM Re: Mapping Network Drive
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Print the contents of "\\server location\@userid" and post it. Does the value contain any whitespace?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#42011 - 2003-06-24 06:59 PM Re: Mapping Network Drive
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
On the problem machine, run the following scriptlet at a DOS prompt.
code:
break on
'@@UserID = '+'['+@UserID+']' ?
Get $

Post the result.

Do you have other NOS clients and protocols installed? If so, make sure you enable only the required protocol for each client and move 'Microsoft Windows Network' to the top in provider order.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#42012 - 2003-06-24 07:15 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
I have tried all of the suggestions that are listed above and i still get the same error each time it runs: "System Error 53, The Network path was not found"

This is the piece that won't run for me, the first to g: and s: map everytime for everyone, however h: which should be there personal storage based on the UserID they log on with won't map. Once again thanks for all of the ideas and help.
code:
  
@echo Mapping Drives
net use g: \\server location\applications
net use s: \\server location\share
net use h: \\server location\@userid


Top
#42013 - 2003-06-24 07:19 PM Re: Mapping Network Drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Your code is a batch file, not a KiXtart script, thus @USERID is incorrect.
_________________________
There are two types of vessels, submarines and targets.

Top
#42014 - 2003-06-24 07:36 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
Well, i guess i messed something up somewhere along the line while trying to get an understanding of using KiXtart, does anyone have a solution for me to either fix the Batch file that i've created or to find a way to transfer it over so that it is a KiXtart script??? Even if not i'm very thankful for all the help you guys have tried to give me here, as i said i'm very new to this and just trying to make sense of it all.
Top
#42015 - 2003-06-24 07:38 PM Re: Mapping Network Drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The KiXtart equivalent is
code:
? 'Mapping Drives'
use g: '\\server location\applications'
use s: '\\server location\share'
use h: '\\server location\'+@userid

_________________________
There are two types of vessels, submarines and targets.

Top
#42016 - 2003-06-24 08:00 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
Okay, i have a file named logXP.kix setup now with the mapping commands that were posted. I tried to follow both the Manual and the FAQs directions for having Kix32 start and then run the script automatically when anyone logs on, but it does not seem to work. Is there something easy i'm overlooking or am i just destined to have bad luck with this entire project?
Top
#42017 - 2003-06-24 08:05 PM Re: Mapping Network Drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Hm, you did follow Kixtart Starter's Guide and it doesn't work? So, the question is what exactly did you do? A simple KiXtart deployment is quite straight-forward when following the instructions in the KiXtart Manual and the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#42018 - 2003-06-24 08:06 PM Re: Mapping Network Drive
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Start by posting the code in your LogXP.kix file. Then post any batch file contents that you may be using to start KiXtart and call your script. Or if you are not using a batch file, describe in detail what steps you have taken to get where you are now.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#42019 - 2003-06-24 08:28 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
Well my LogXP.kix code is just what was posted here:
code:
 ? 'Mapping Drives'

use g: '\\server location\applications'
use s: '\\server location\share'
use h: '\\server location\'+@userid

As far as my batch file that i have starting when a user logs in i have tried several dozen different things:
code:
  
Kix32.exe logxp.kix

%0\..\Kix32.exe logxp.kix

%0\..\Kix32.exe %0\..\logxp.kix

Kix32 logxp.kix

%0\..\Kix32 logxp.kix

%0\..\Kix32 %0\..\ logxp.kix

And other such things but every single time i run it it gives an error message that reads: 'Kix32.exe is not recognized as an internal or external command, operable program or batch file'. I am doing this in XP and i know that it has some issues that are discussed in Microsoft Knowledge Base Article - 318689, but even trying those suggestions still result in the same error message every time around.

[ 25. June 2003, 18:24: Message edited by: Nom Anor ]

Top
#42020 - 2003-06-24 08:31 PM Re: Mapping Network Drive
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Are the files located in all NETLOGON folders? Can you call the batch file from the console?
_________________________
There are two types of vessels, submarines and targets.

Top
#42021 - 2003-06-24 08:46 PM Re: Mapping Network Drive
Nom Anor Offline
Fresh Scripter

Registered: 2003-06-24
Posts: 10
[Big Grin] All i can say right now is THANK YOU SO MUCH to everyone that helped me out here. I do have my script fully operational now and it is mapping network drives all across the office as people log in. I finally got it to run by simply droping a shortcut into the All User Startup folder with 'C:\KIX32\KIX32.EXE logxp.kix' as the target.

It is now running perfectly, mapping the drives, displaying the morning/afternoon/evening welcome messages and assigning printers as it should be. If you can't tell from the mood of the post i am very excited to have this running properly now and i just wanted to come back to post one final message of thanks to everyone. [Big Grin]

Top
#42022 - 2003-06-24 08:50 PM Re: Mapping Network Drive
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Then this is what your batch file should have in it.

code:
C:\KIX32\KIX32.EXE %0\..\logxp.kix

the error you listed above
quote:
'Kix32.exe is not recognized as an internal or external command, operable program or batch file'
simply means that the file could not be found in the %path%. You fully qualified it as a local file avoided that error.

[ 24. June 2003, 20:51: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#42023 - 2003-06-24 08:58 PM Re: Mapping Network Drive
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Since this is an XP-Related issue. Did not see any mention of -

Use of %0\..\ to launch KiX

Nor -
A Logon Script Does Not Work If %0 or %0\..\ Calls Multiple Commands

Thanks,

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

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 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.068 seconds in which 0.025 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