MCA
(KiX Supporter)
2001-11-22 05:06 AM
KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

Dear Ruud,

related release: KiXtart 4.00 final release (build 62)
related topic:
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002527

problem description:
awinkel reports:
After upgrading to the newest version of KiXtart I get an error at the follow
code

code:

USE H: "@homedir"
IF (@error = 0)
? "drive H mapped"
ELSE
? "prolems with mapping drive H"
ENDIF


with V3.63 it works well...
with V2001 it works good at w9x clients but not at NT machines
Anyone any idea???

Awinkel gets the error: Script error : error in USE statement !.

workaround available? YES
DrillSergeant reports in related topic which isn't only related
to the @homedir macro, but also to f.e. @homeshr macro.

I did some testing and if I have a script like this:

code:

BREAK ON
CLS
USE H: @HOMESHR


I get the same error as you! (WIN2K btw)

if I do:

code:

$dummy="@HOMESHR"
USE H: @HOMESHR


I don't get an error. Unfortunately I can't check if the mapping is made right now.

It looks as though the statement '$dummy="@HOMESHR"' loads the macro into memory, but the USE statement
can't handle the macro if it isn't in memory yet?

With this workaround the result of awinkel script will be

code:

$=@homedir
USE H: "@homedir"
IF (@error = 0)
? "drive H mapped"
ELSE
? "prolems with mapping drive H"
ENDIF


greetings.

btw: we add this issue also on the beta forum. Other members can take knowledge
of new issues, which are related to the KiXtart 4.00 final release (build 62).
It is also much easier for Ruud to find possible problems back and to prevent
him from a running fire of emails.
Also the members can easily see 'are there any problems at the moment' and 'what
is the status of it'. Emails are a virtual medium, which can get lost in the great
amount of emails a person like Ruud can receive simply and solely by KiXtart users.

btw: we found it a good place - even it is a final release - for such
problems. This release isn't the last release of KiXtart version.

btw: we are using for this problem the qualification minor, because there
is a workaround for it.
in other cases we like to use major as qualification.

MCA
(KiX Supporter)
2001-11-22 05:13 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

we saw the solution too late. related topic is also closed.
above issues gives you an idea "how we will report possible problems with kixtart".
greetings.


MCA
(KiX Supporter)
2001-11-22 05:17 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

btw: the input for the closed topic was

Dear,

We add this issue also on the beta forum. Other members can take knowledge
of new issues, which are related to the KiXtart 4.00 final release (build 62).
It is also much easier for Ruud to find possible problems back and to prevent
him from a running fire of emails.
Also the members can easily see 'are there any problems at the moment' and 'what
is the status of it'. Emails are a virtual medium, which can get lost in the great
amount of emails a person like Ruud can receive simply and solely by KiXtart users.

the related topic is:
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=3&t=000270
greetings.

btw: we saw the update report to late. so it gives an idea how will
we report such problem.


**DONOTDELETE**
(Lurker)
2001-11-22 10:25 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

After installing kixtart V4.01 the command use h: "@homedir" still didn't work.
You all agree with this?

[ 22 November 2001: Message edited by: awinkel ]

DrillSergeant
(MM club member)
2001-11-22 11:12 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

Yeah, that's right.

I mailed Ruud about that already.

gregglsc
(Fresh Scripter)
2001-11-23 03:16 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

USE H: "@HOMEDIR" will never work and was not intended to. Look on page 45 of the manual. USE H: "@HOMESHR" not DIR. @HOMEDIR is the short name of the users home directory. i.e. dept\username whereas @HOMESHR is the server name and shared path. i.e. \\server\share. @HOMEDIR is used with the CD command as in Ruud's example. Hope this helps.

Gregg

DrillSergeant
(MM club member)
2001-11-24 12:38 AM
Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results

Hi gregglsc,

AFAIK your remark is true IF your Homedir path is something like this:

\\{SERVER}\{SHARE}\{SUBFOLDER}

then the macro's return:

@HOMESHR = \\{SERVER}\{SHARE}
@HOMEDIR = {SUBFOLDER}

BUT

if your Homeshare looks like this:

\\{SERVER}\{SHARE}

both macro's will look like this:

@HOMESHR = \\{SERVER}\{SHARE}
@HOMEDIR = \\{SERVER}\{SHARE}