Page 1 of 1 1
Topic Options
#166286 - 2006-08-23 09:25 PM @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if one has homedrive set as follows:
h: \\server\share\user.name

@homedrive returns h:
@homeshr returns \\server\share
@homedir returns user~1.nam

trying to map that, with:
use @homedrive @homeshr+"\"+@homedir

fails.
can you ruud add a macro for PATH.
the whole path and nothi...
well, something that would return the WHOLE PATH
\\server\share\user.name

and could be used unlike the current ones...

use @homedrive @homepath

thanks.
_________________________
!

download KiXnet

Top
#166287 - 2006-08-24 01:58 AM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
@homeshr and @homedir

Both return the same information for me.

Top
#166288 - 2006-08-24 05:58 AM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc, so what is your homepath set to in your user profile?
Top
#166289 - 2006-08-24 07:38 AM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
\\SERVER\USERID$
Top
#166290 - 2006-08-24 09:14 AM Re: @homepath macro
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It works OK for me:
Code:
use q: @HOMESHR+"\"+@HOMEDIR



Give me:
Code:
Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK Q: \\hmiuklhdfl001\users$\rhowarth\MYDOCU~1
Microsoft Windows Network



Jooel, what error do you get when the mapping fails? It's not down to something as simple as @HOMEDRIVE being already mapped, is it?

Top
#166291 - 2006-08-28 11:01 AM Re: @homepath macro
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Jooel, you're sure about that @homedrive returns h:
,@homeshr returns \\server\share and @homedir returns user~1.nam ? Like doc said, @homedir and @homeshr returns the same info for me aswell.
Richard, seems like it returns something like Jooel says for you, otherwise your macro-line should be something like use q: \\server\share\\\server\share, no?

Top
#166292 - 2006-08-28 02:43 PM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...
guess the issue is that kixtart uses some shortname thingie for the homedir macro.
anyways, adding a homepath macro would remove the need to add up macros for something that is a single field in the user account settings.

Top
#166293 - 2006-08-28 08:41 PM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
How does the entry look for you? I don't have to add up any macros to get that path but I do a hidden share for each user and not \\server\folder\share
mine is
\\server\share$

Top
#166294 - 2006-08-29 05:44 AM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mine is:
\\server\share\user.name

or more accurately:
\\server\share\first.lastname

Top
#166295 - 2006-08-29 06:25 AM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
hmmm.. okay. Wonder if that F.L is part of the issue.

Have never seen it done that way.

If I get time this week I'll play with some variations and see what results I get.

May want to move this to General until we can confirm there is a real issue.

Top
#166296 - 2006-08-29 07:12 AM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this is not in beta. and the suggestion remains.
Top
#166297 - 2006-08-29 08:45 AM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Doesn't really bother me, just that currently you're the only one that seems to think it is an issue.

I'll do some testing to see if I can confirm though. But must say that it seems to operate the same as it did back in 3.x days so not sure why after 5 years or so it seems to come up for you now.

Top
#166298 - 2006-08-29 04:50 PM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
because I have new domain and for the first time, the user account name is long and for the first time it has dot in it.

and again, I can accept that it works as it has always worked, but I need a new macro that will work properly so I can map the damn drive.
thus, this is in suggestions.

Top
#166299 - 2006-08-30 12:49 AM Re: @homepath macro
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
This code -

Code:

'KiX version: ' + @KiX ??
'Home Drive (HomeDrive macro): ' + @HomeDrive ?
'Long Home Folder (LongHomeDir macro): ' + @LongHomeDir ?
'Home Share (HomeShr macro): ' + @HomeShr ?
'Home Directory (HomeDir macro): ' + @HomeDir ?



Produced these results for me when I used a long folder name
like Jooel has done.

Code:
KiX version: 4.53 Release Candidate 1
 
Home Drive (HomeDrive macro): U:
Long Home Folder (LongHomeDir macro): This.is.a.reallybigtest.now
Home Share (HomeShr macro): \\MSEF001\USERS$
Home Directory (HomeDir macro): THISIS~1.NOW



So I can confirm along with Jooel that the Macro needs some
updating to produce the correct results for Long names.

Top
#166300 - 2006-08-30 06:29 AM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
where did you get that @longhomedir?
I've never ever thought to even look for one as I've always assumed homedrive related macros are named @home****

so, with it I can make it work.

but my suggestion still stands.
please ruud, add a macro that returns the full homePath

Top
#166301 - 2006-08-31 01:02 PM Re: @homepath macro
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
What this returns depends on what's stored in ADUC / AD.... if there's H:\ there, it will return H:\, if it's an UNC path (recommended), it will return that...
Top
#166302 - 2006-08-31 03:28 PM Re: @homepath macro
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
masken, what you are trying to say?
what "this" returns?

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.065 seconds in which 0.023 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