Page 1 of 1 1
Topic Options
#151963 - 2005-11-21 05:27 PM Using a dash in a file name
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Ran into a snag with our login script last week..

If I use the following snip of code, KiXtart does not work:
[code]
IF EXIST($desktop+'\BrokerDB - Citrix')
; -- Do something
ENDIF
[/code]

It gets hung up on the "-" as a funky umlaut u character. Also, I have tried using chr(45) in it's place and it does not work either. I have tried this with both a raw script was well as a tokenized version too.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#151964 - 2005-11-21 05:32 PM Re: Using a dash in a file name
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Try blaming your editor.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#151965 - 2005-11-21 08:28 PM Re: Using a dash in a file name
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
How could the editor mess up Chr(45) ??

Could it be a strange regional or language setting? Does it happen on all systems or just a few?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#151966 - 2005-11-21 08:38 PM Re: Using a dash in a file name
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I use hyphens in my script file names. I have tested under 4.50.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#151967 - 2005-11-22 09:35 AM Re: Using a dash in a file name
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Works fine here too (4.50).

Is this a local filesystem or a networked one? If networked, what OS is the file server?

Is your anti-virus sw causing the problem?

Have you tried just isolating the Exist() function in a script on it's own of just two or three lines to ensure that it's not something else in the full script which is causing the problem?

What is the context of the funky character? Where do you see it? Is it just a feature of the display rather than the Exist() function?

Top
#151968 - 2005-11-24 11:14 PM Re: Using a dash in a file name
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
It probably is Anitvirus.. Have had some funky tings that have happened with McAfee.

I am playing with Beta 2 o EditPad 6. It is pretty slick!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, 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.14 seconds in which 0.043 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