Re: Undoing ExtractRelativePath

From: Marc Rohloff (dont_at_mailme.com)
Date: 12/03/03


Date: Wed, 3 Dec 2003 17:00:56 -0500

Steve Moss wrote on 3 Dec 2003 09:18:18 -0700 ...
<3fce1ada$1@newsgroups.borland.com>

> No. Read my message in full, where I said "I presume that if you have a
> relative path then you know what path it
> is relative to (well, if you don't, it's not much use ;-))" Then ...
Assuming is not always a good idea. For example Delphi will store
relative or absolute paths in the .dpr depending. When you read them
back you have to decide what they want.

Also a user can type in any path he likes. You would probably want to
make sure you can handle them sensibly. The way I described is the way
they would work at say a DOS prompt. (OK, So I'm old fashioned)

Also there is a PathCombine API call. I don't know if this handles all
the situations.

Marc Rohloff
marc rohloff at bigfoot dot com



Relevant Pages

  • Re: Creating m3u file for mp3 disk
    ... >> I'm not sure what I'm doing wrong or the proper directory structure. ... It can be an absolute or a relative path, ... > that uses a different mount point for the CD. ... use absolute paths if you want to have the .m3u file in a ...
    (comp.os.linux.misc)
  • Whats the perfect (OS independent) way of storing filepaths ?
    ... I wonder what's the perfect way to store, OS-independent, filepaths? ... use a relative path if drive is identical to the application ...
    (comp.lang.python)
  • Re: Links and graphics in Access
    ... Just store the file name in the database, then on your page create a relative path to the location ... Never heard of an security issues related to storing hyperlink in a database. ...
    (microsoft.public.frontpage.client)
  • Re: Databases
    ... Say you store your forms, your data and your testdata in the directories ... Then relative path will ... be invalid and in this case VFP opens database in the default directory. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: relative path in web.config
    ... server transplants it for some reason on my system32 directory. ... > relative path to an absolute path. ... For example you could store: ...
    (microsoft.public.dotnet.framework.aspnet)