Page 1 of 1 1
Topic Options
#179658 - 2007-08-24 11:29 AM @scriptname long filename support
oneYogi Offline
Fresh Scripter

Registered: 2005-04-13
Posts: 6
Greetings!
Please add a feature to be able to get the long filename of @scriptname!

It would greatly assist in writing generic code that can for example:

read an exactly the same filename ini file
write an exactly the same filename logfile

etc etc

Please!!!

Regards,
Yogi


Edited by oneYogi (2007-08-24 11:29 AM)

Top
#179660 - 2007-08-24 01:08 PM Re: @scriptname long filename support [Re: oneYogi]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4669
Loc: The Netherlands
@scriptname already returns the complete name of the script. At least in my case it does.

This script saved as abc --> z012 --> 9 twice (78 characters) works just fine.

 Code:
Break on

@SCRIPTNAME
?"Lenght of the scriptname is: " Len(@SCRIPTNAME)

Sleep 5
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#179738 - 2007-08-27 10:51 AM Re: @scriptname long filename support [Re: Mart]
oneYogi Offline
Fresh Scripter

Registered: 2005-04-13
Posts: 6
@scriptname returns a dos 8.3 format filename, thus y:\oneyogibackup.kix is displayed as y:\oneyog~1.kix (kix 4.53)
Top
#179739 - 2007-08-27 11:02 AM Re: @scriptname long filename support [Re: oneYogi]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I have to confirm Mart
Created a script:
C:\This is a very deep folder\This is a very long file name.kix
also
U:\This is a very deep folder\This is a very long file name.kix
The last is a network drive, like I presume is your y:
 Code:
BREAK ON
@SCRIPTNAME ?
@KIX ?
Get $SO

 Code:
This is a very long file name.kix
4.53

Top
#179749 - 2007-08-27 01:50 PM Re: @scriptname long filename support [Re: Witto]
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1889
Loc: Hilversum, The Netherlands
Probably 8.3 on win98 or something.
Top
#179754 - 2007-08-27 03:30 PM Re: @scriptname long filename support [Re: Arend_]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
OK
oneYogi,
My OS = Windows XP
And yours?

Top
#179819 - 2007-08-28 08:42 AM Re: @scriptname long filename support [Re: Witto]
oneYogi Offline
Fresh Scripter

Registered: 2005-04-13
Posts: 6
Windows XP SP2
Top
#179822 - 2007-08-28 09:59 AM Re: @scriptname long filename support [Re: oneYogi]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Sorry, forgot to add the fact that I also have SP2
Windows XP SP2
Language = English (that should not be an issue, but I don't know where your problem originates)

Top
#179824 - 2007-08-28 10:08 AM Re: @scriptname long filename support [Re: oneYogi]
oneYogi Offline
Fresh Scripter

Registered: 2005-04-13
Posts: 6
Goodday to you all!

@scriptname works correctly - I used the wrong parameter in my editor (ultraedit) - "wkix32 %F" instead of "wkix32 %f" - which loads the shortname to kixtart.

Thank you all very much for the reponses!

Regards
Yogi

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
0 registered and 315 anonymous users online.
Newest Members
Kelly001, MichaelK72, Janneman, standardbruker, maikoenig2001
17773 Registered Users

Generated in 0.098 seconds in which 0.058 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org