Page 1 of 1 1
Topic Options
#9522 - 2001-06-14 04:06 AM script runs, but network name not found
calbear Offline
Fresh Scripter

Registered: 2001-06-13
Posts: 16
Loc: san francisco, ca, usa
I am running a .kix file with the following lines in it:

BREAK OFF

; ASSIGN VARIABLES FOR HOME & WORKGROUP DIRECTORIES
$X="$$"
$S1="\\SOMLH2\"

; MAP HOME DIRECTORIES ACCORDING TO CLOSEST SERVER
$U=@USERID
$HOME=$S1+$U+$X

USE F: $HOME ; MAP PERSONAL SHARE, HOME DIRECTORY

; MAP WORKGROUP DRIVES

IF INGROUP("SOM\SOMDEAN_ISU")
USE G: $S1 + "ISU$"
ENDIF

The drives APPEAR to map, but when I try to access them in Windows Explorer, it generates the following error:
F:\ is not accessible. The network name cannot be found.

HOWEVER, if I simply map a drive to \\somlh2\sharename, it maps perfectly.

THANKS for any help any of you can provide!

Top
#9523 - 2001-06-15 04:24 AM Re: script runs, but network name not found
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We have look at your code.
Your code:

code:

BREAK OFF

; ASSIGN VARIABLES FOR HOME & WORKGROUP DIRECTORIES
$X="$$"
$S1="\\SOMLH2\"

; MAP HOME DIRECTORIES ACCORDING TO CLOSEST SERVER
$U=@USERID
$HOME=$S1+$U+$X

USE F: $HOME ; MAP PERSONAL SHARE, HOME DIRECTORY

; MAP WORKGROUP DRIVES

IF INGROUP("SOM\SOMDEAN_ISU")
USE G: $S1+"ISU$"
ENDIF



Some remarks about your code

  • first use use X: /delete for unwanted network mappings.
  • use
    code:

    IF (@error <> 0)
    ? "Warning "+@error+": "+@serror
    ENDIF


    to see possible mapping problems
  • INGROUP("SOM\SOMDEAN_ISU") isn't correct.
    You may using ingroup("somdean_isu") or ingroup("\\som\somdean_isu").
    (see our example about the differences. som\somdean_isu will
    always return a ZERO value.
  • use ingroup("group_name") <> 0. in this case it isn't
    important which group type you have defined.

In our example we are a server with domain server and
as user temp. We are mapping I + M drive.
Script for testing:

code:

cls
break on
use i: /delete
use m: /delete

; ASSIGN VARIABLES FOR HOME & WORKGROUP DIRECTORIES
$x="$$"
$s1="\\server\"
; MAP HOME DIRECTORIES ACCORDING TO CLOSEST SERVER
$u="temp" ; @USERID
$home=$s1+$u+$x
? " map: USE I: "+$home
use i: $home ; MAP PERSONAL SHARE, HOME DIRECTORY
IF (@error <> 0)
? "Warning "+@error+": "+@serror
ENDIF
; MAP WORKGROUP DRIVES

? " \\server\domain admins "+INGROUP("\\server\Domain Admins")
? " server\domain admins "+INGROUP("server\Domain Admins")
? " domain admins "+INGROUP("Domain Admins")

IF (ingroup("\\server\Domain Admins") <> 0)
? " map: USE M: "+$s1+"temp$"
use m: $s1+"temp$" ; +"ISU$"
IF (@error <> 0)
? "Warning "+@error+": "+@serror
ENDIF
ELSE
? " no map: USE M: "+$s1+"temp$"
ENDIF
use list


Output to your screen can be:

code:

map: USE I: \\server\temp$
\\server\domain admins 1
server\domain admins 0
domain admins 1
map: USE M: \\server\temp$
Current redirections :

I: --> \\SERVER\temp$
M: --> \\SERVER\temp$
(null) --> \\SERVER\IPC$

End of list.


The output of the net use can be:

code:

New connections will not be remembered.

Status Local Remote Network
-------------------------------------------------------------------------------
OK I: \\SERVER\temp$ Microsoft Windows Network
OK M: \\SERVER\temp$ Microsoft Windows Network
The command completed successfully.



We hope you get an idea about the usage of some kixtart functions.
Greetings.

------------------
Site map:

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#9524 - 2001-06-15 05:27 AM Re: script runs, but network name not found
calbear Offline
Fresh Scripter

Registered: 2001-06-13
Posts: 16
Loc: san francisco, ca, usa
I sincerely appreciate your response. I re-did my script with all of the commands that you suggested (EXACTLY as you suggested) except of course, I substituted my information (domain, group name, etc). The problem is that I got the same result. The Kixtart.log file shows the following:


2001/06/14 19:16:40 - Error occured during retrieval of remote network information Error : (0x83a/2106)
2001/06/14 19:16:40 - Failed to locate/connect to a KXRPC server Error : The network path was not found. (0x35/53)
2001/06/14 19:16:40 - Failed to determine KXRPC server Error : The network path was not found. (0x35/53)

When I went to the command prompt and typed in net use, it shows:

Status Local Name Remote Name
Disconnected F \\SOMLH2\ISUTEST$

ALL of the Domain Controllers have the KXRPC service installed and are running; and ALL DC's also have the same version of all dll's, bat, kix and scr files (v. 3.63).

Do you have any other places for me to troubleshoot?

Thank you so much!

Top
#9525 - 2001-06-15 08:46 PM Re: script runs, but network name not found
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I assume because you make reference to KXRPC, your clients are Win9x. Have you set the KXRPC env. variable (i.e. SET KXRPC=\\PDC_NAME)? If you're running the NetWare client as well, you'll have to modify the provider order. I got grey hair troubleshooting the provider order.

------------------
Laziness is the mother of invention

Les Ligetfalvy

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#9526 - 2001-06-16 01:54 AM Re: script runs, but network name not found
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We search for topic on this site and http://www.jsiinc.com .


The also the documentation about KXRPC routine (created by Roger de Jong).
See for document http://kix.isorg.net .
Greetings.

[This message has been edited by MCA (edited 16 June 2001).]

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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

Generated in 0.062 seconds in which 0.033 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