Results 1 to 2 of 2

Thread: Common Dialog file location needs changing

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    11
    Hi,
    I have a common dialog control that I use to get a filename. This filename is used to give the picture control a location of where to find its image. I have this working fine.

    However, my problem is that this picture location is stored in a database, and is then acessed by a web server. The web server reads the location (which is normally something like "C:\images\image.gif"). This is no good for me, as this reference points to the client location, rather than the location for the server. I need both locations, eg:
    1) For the picture box - "C:\images\image.gif"
    2) For the server - "\\server\images\image.gif", or, I have also seen something like -
    "\\server\C\Bet\Home\images\Sports\cricket.gif"

    I would simply use some string functions to remove the "C:" and replace it with "\\server", but this procedure must work across different servers, and therefore have different names - therefore I cannot hardcode the servername into the string.

    Is there any way I can convert the standard file location into a more "web-based" location?

    Thanks for any help in advance.

    Cheers,

    Russ

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77
    Yes, but you must know where the file is. If it is in the same directory or a sub directory of your app, you can use something like App.Path & "\images\images.gif"
    KWell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width