Page 1 of 1 1
Topic Options
#78620 - 01/11/22 05:06 AM KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
MCA Offline
KiX Supporter
*****

Registered: 00/04/28
Posts: 5152
Loc: Netherlands, EU
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.

_________________________
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
#78621 - 01/11/22 05:13 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
MCA Offline
KiX Supporter
*****

Registered: 00/04/28
Posts: 5152
Loc: Netherlands, EU
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.
_________________________
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
#78622 - 01/11/22 05:17 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
MCA Offline
KiX Supporter
*****

Registered: 00/04/28
Posts: 5152
Loc: Netherlands, EU
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.

_________________________
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
#78623 - 01/11/22 10:25 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
Anonymous
Unregistered


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 ]

Top
#78624 - 01/11/22 11:12 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
DrillSergeant Offline
MM club member
*****

Registered: 04/07/09
Posts: 1164
Loc: Eijsden, the Netherlands
Yeah, that's right.

I mailed Ruud about that already.

_________________________
The Code is out there

Top
#78625 - 01/11/23 03:16 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
gregglsc Offline
Fresh Scripter

Registered: 00/11/16
Posts: 21
Loc: USA
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

Top
#78626 - 01/11/24 12:38 AM Re: KIX-MINOR: combination USE and @homedir/@homeshr returns unexpected results
DrillSergeant Offline
MM club member
*****

Registered: 04/07/09
Posts: 1164
Loc: Eijsden, the Netherlands
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}

_________________________
The Code is out there

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (green78) and 144 anonymous users online.
Newest Members
Keris2112, Jorromans, qrstuv140696, Bloodboy, NIJAKIX
17451 Registered Users

Generated in 0.131 seconds in which 0.096 seconds were spent on a total of 12 queries. Zlib compression enabled.