Page 1 of 1 1
Topic Options
#37896 - 2003-03-13 02:33 PM convert path to dos format
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum]

Hi,

Is there any UDF's that can convert a normal path to a dos format path and vice a versa?

Darren

[ 13. March 2003, 16:53: Message edited by: sealeopard ]
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#37897 - 2003-03-13 02:49 PM Re: convert path to dos format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
are you talking about 8.3 notation?
_________________________
!

download KiXnet

Top
#37898 - 2003-03-13 04:51 PM Re: convert path to dos format
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might be able to do this via WMI by checking the 8.3-compliant name for each of the directories and the file.

Why do you need 8.3 notation? Can't you put quotes around the filename?

Please elaborate.
_________________________
There are two types of vessels, submarines and targets.

Top
#37899 - 2003-03-13 05:02 PM Re: convert path to dos format
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
Hi,

Well if you wish to do a recusive copy of files and folders with xcopy within kix, when used on win9x, it does not recognise the full path name if it is not in 8.3 notation.

I think this problem also exists with softlink()

Darren
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#37900 - 2003-03-13 06:06 PM Re: convert path to dos format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
once again, the problem is not softlink but the underlying kixtart-function.

well, no one has proven otherwise.
btw, it was just updated so you may try again.
_________________________
!

download KiXnet

Top
#37901 - 2003-03-13 06:13 PM Re: convert path to dos format
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I think the underlying problem is Windows 9x

[Big Grin] Duck and Cover! [Big Grin]
_________________________
There are two types of vessels, submarines and targets.

Top
#37902 - 2003-03-13 06:25 PM Re: convert path to dos format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure, in this problem.

but in softlink it indeed is the api that is used by addprogramitem() which is used by softlink() UDF
_________________________
!

download KiXnet

Top
#37903 - 2003-03-14 10:13 AM Re: convert path to dos format
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
Humm,

I'm sure Windows 9x is the problem hence the reason I am trying to circumnavigate this, calling a xcopy command from dos is fine. To call it from kix is a problem because I think you cant have double sets of speech marks?

With 230+ users with W9x to support upgrading is not a solution.

Is there a Kixtart xcopy command, or why not?

Darren [Razz]
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#37904 - 2003-03-14 10:17 AM Re: convert path to dos format
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh well :

GetShortFileName() - Returns the name/path (or both) of a given file in 8.3 format

Not sure if this will work on 9x though [Razz]
_________________________



Top
#37905 - 2003-03-14 10:27 AM Re: convert path to dos format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what is speech mark?
if you wonder can you use double sets of quotes (") in shell, sure you can!

actually, that is the only way to make it work in some applications.

and after thinking, this seems to be the exact problem you are having.

see Proper use of quotes

[ 14. March 2003, 10:29: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#37906 - 2003-03-14 10:32 AM Re: convert path to dos format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, not so sure about that anymore.

the faqs seems to be more than messed up on this matter.
well, try it out.
_________________________
!

download KiXnet

Top
#37907 - 2003-03-14 10:36 AM Re: convert path to dos format
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
quote:
Duck and Cover!
Jens, wasn't that the Parole in an 'educational' movie of the late 50's(beginning of Cold War) regarding 'How to survive a Nuclear Assault' ... [Roll Eyes]

Yeah IIRC that thing they made also a song ... ROFL !!!

Oh yeah : http://chemistry.about.com/cs/history/v/aavid030103.htm

Bert the Turtle [Smile]

[ 14. March 2003, 10:48: Message edited by: jpols ]
_________________________



Top
Page 1 of 1 1


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