#20511 - 2002-04-24 03:07 PM
Some drives mapped by kix(4) don't function & give errors, not when mapped in explore
|
Michel S
Lurker
Registered: 2002-04-24
Posts: 4
Loc: Amsterdam, the Netherlands
|
Hi All, I've been using kix script w/o problems for some time now, but since we moved department shares form our NT 4.0 to our Win 2000 Servers some of the mapped shares (mapped by kix (v.4) cause errors and don’t function, they are visible Explorer.
- Problem 1: When you try to access or browse the mapped drive you get the following error : “No access to J:\ Network path was not found.” (It’s translated from the Dutch error “Geen toegang tot J:\. Kan het netwerkpad niet vinden”, so I don’t know if it’s the exact phrase) Then when I disconnect the drive in explorer and then map it in explorer the mapped drive is fully accessible w/o problems.
- Problem 2: The drive is again mapped in the kix login script. but files on them are not accessible from applications like word, excel, etc., it gives the following error:
Word cannot open the document J:\Future.doc Word cannot open the document J:\plans.doc Word cannot open the document J:\for.doc Word cannot open the document J:\2003.doc
, when the file is opened from explorer it opens just fine, but when you want to save it, it gives an error that the file name is invalid, but when saved to an other share or local disk there is no problem.
We are using: Server Windows 2000 Server 5.00.2195 SP2 Kix32 v4, 0, 2 KixRPC v4, 00, 0, 0
Client Windows 98SE 4.10.2222 A (Dutch) Word 97 SR2
The shares are mapped using :
code:
;mapping w/o problem If InGroup("COMP-DEP") = 1 $AFDELING = "\\AMSFIL0001\COMP_DEP" Gosub "AFDELINGSSCHIJF" EndIf
;mapping with problem If InGroup("Directie") = 1 $AFDELING = "\\AMSFIL0001\CPY Directie" Gosub "AFDELINGSSCHIJF" EndIf
;mapping with problem If InGroup("NEWBUSINESS") = 1 $AFDELING = "\\AMSFIL0001\CPY New Business" Gosub "AFDELINGSSCHIJF" EndIf
;map sub :AFDELINGSSCHIJF $POGING = 1 $DRIVELETTERS = "HJKLMN" $TOTAAL = Len($DRIVELETTERS) $DRIVELETTER = "Geen" Do $DRIVELETTER = SubStr($DRIVELETTERS,$POGING,1) If Exist($DRIVELETTER + ":\*.*") = 0 Use $DRIVELETTER + ":" $AFDELING $POGING = $TOTAAL Else $POGING = $POGING + 1 EndIf Until $POGING = $TOTAAL Return
Does anyone have a lead on how to fix this?
Kreetz, Michel
|
|
Top
|
|
|
|
#20514 - 2002-04-25 03:14 PM
Re: Some drives mapped by kix(4) don't function & give errors, not when mapped in explore
|
Michel S
Lurker
Registered: 2002-04-24
Posts: 4
Loc: Amsterdam, the Netherlands
|
Hi all, Thanks for your reactions.
>Chris S. : When the mapped drives did not function, but were visible in explorer, after being mapped in the login script we have disconnected them and mapped them manually in explorer, we have not yet mapped them via net use x: UNC /persistent.
>Patrick R. : The shares are visible in explorer, but when you try to access them they give errors. I have tried the following:
code:
$AFDELING = '"\\AMSFIL0001\CPY Directie"'
but the share still is not accessible.
The strange thing is if i map them in explorer there is no problem.
Greetinx, Michel
|
|
Top
|
|
|
|
#20515 - 2002-04-28 03:33 PM
Re: Some drives mapped by kix(4) don't function & give errors, not when mapped in explore
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Welcome to the board.
What is the result when use are using the NET USE command. f.e.
code:
USE N: /delete /persistent SHELL '%comspec% /c NET USE N: "\\amsfil0001\CPY Directie" '
Possible that kixtart is using a different way of checking share names in an USE statement. greetings.
|
|
Top
|
|
|
|
#20516 - 2002-05-07 05:07 PM
Re: Some drives mapped by kix(4) don't function & give errors, not when mapped in explore
|
Michel S
Lurker
Registered: 2002-04-24
Posts: 4
Loc: Amsterdam, the Netherlands
|
Thanks MCA, it worked.
Not at first, I had to put a ‘sleep 1’ between the use’s , now it works fine, strangely enough. I know it’s kinda messy end I will get back in to this later, when time let’s me.
This is the code in the map loop for now:
code:
Use $DRIVELETTER + ":" /DELETE /PERSISTENT $AFD_ERR_1 = @ERROR $AFD_ERR_2 = @SERROR If $AFD_ERR_1 <> 0 AND $MACHINE = "MY-TOKO" $DUMMY = MessageBox ("DELETE ERROR = " + $AFD_ERR_1 + " : " + $AFD_ERR_2 + " " + "Deleting Mapping " + $DRIVELETTER + ": ", "Mapping Errors", 64, 5) EndIf Sleep 1 Use $DRIVELETTER + ":" "$AFDELING" $AFD_ERR_1 = @ERROR $AFD_ERR_2 = @SERROR If $AFD_ERR_1 <> 0 AND $MACHINE = "MY-TOKO" $DUMMY = MessageBox ("MAP ERROR = " + $AFD_ERR_1 + " : " + $AFD_ERR_2 + @CRLF + "Mapping " + $DRIVELETTER + ": = '" + $AFDELING + "'", "Mapping Errors", 64, 5) EndIf
Thanx eve, Michel S.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 580 anonymous users online.
|
|
|