Page 1 of 1 1
Topic Options
#125727 - 2004-08-27 09:31 AM naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
So, i'm new to this forum and a newbie on kiXtart, but i just love scripting! I wrote this script in kiXtart to connect homedir's and printers to users. Work all fine, but now i want to rename the homedir connection. When i connect to a homedir, it will have the name: "username on 'servername\sharename$' (N:) ". I don't want users to see the servername and sharename, but i want to name it "homedir" or something. Is that possible?

PONG

Top
#125728 - 2004-08-27 09:35 AM Re: naming a share
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes.
anyway, the scripts don't always work.
for one example, check the label() udf in the collection (see my siggy for the linky)

iirc, there is also one other way in mapdrive()
_________________________
!

download KiXnet

Top
#125729 - 2004-08-27 12:42 PM Re: naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
I tried Label() and it works! But any idea why it not always works? Does mapdrive() work better?
Top
#125730 - 2004-08-27 01:49 PM Re: naming a share
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no.
it's stuff that lies under.
like explorer synchronization and [censored].

been trying sometimes already to tweak so it would accept it but randomly explorer seems to reverse the naming.
_________________________
!

download KiXnet

Top
#125731 - 2004-08-29 09:44 PM Re: naming a share
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
So far, I haven't encountered any problems when using the MapDrive() UDF at http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB12&Number=112220&Forum=UBB12
_________________________
There are two types of vessels, submarines and targets.

Top
#125732 - 2004-08-30 03:56 PM Re: naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
I tried label() and mapdrive() UDF. They both sometimes fail to label the share. Must be some way to fix it? Running the udf twice maybe?
Top
#125733 - 2004-08-30 04:03 PM Re: naming a share
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe in the cases it fails, you are assigning it in the user's profile.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125734 - 2004-08-30 04:28 PM Re: naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
i use a script to assign homedirectory's to users. In the script i use the label() and/or mapdrive() udf to rename the share to the homedir. Problem is that sometimes the udf will work, but randomly doesnt work. So, if i log on as a user, it might work. But if i log out and back on chance exist that the renaming did not work. And it's important for me that it works all the time, no matter how many times a user logs in or out.
HELP!

Top
#125735 - 2004-08-30 06:10 PM Re: naming a share
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Are you sure you have not also assigned it as well in the user's profile? If you did, you could have a problem with syncronicity.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125736 - 2004-08-31 09:39 AM Re: naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
I did not map the homedir in the users profiles, but could syncornicity still be a problem? If so, i might build in a delay or something?
Top
#125737 - 2004-08-31 11:52 AM Re: naming a share
pong Offline
Fresh Scripter

Registered: 2004-08-27
Posts: 14
Loc: Zeist, The Netherlands
Ok, So i build in a sleep, homedirectory's will be mapped after the computer has started up a bit more. Tested it on several computers, works better now. It doesnt happen that often any more.
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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.216 seconds in which 0.15 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