converting physical path to virtual path ...

Results 1 to 2 of 2

Thread: converting physical path to virtual path ...

  1. #1
    Harsha Bhogle Guest

    Default converting physical path to virtual path ...

    Hi,<BR><BR>I&#039;ve managed to create and save word files in our web server. It&#039;s working fine.<BR><BR>But my problem is I&#039;m not able to convert the physical path of the file to the virtual path so I can display the link to the client. For example, I created "c3cr.doc" file in the <BR>"C:inetpubwwwrootdocuments\" folder. How can I convert this path to the virtual path? Please note that I&#039;m creating the file names dynamically using FSO&#039;s GetTempName method. Please help me.<BR><BR>Harsha Bhogle

  2. #2
    Join Date
    Dec 1969

    Default Okay, where to start...

    You created them in:<BR>c:inetpubwwwrootdocuments<BR>Where is your web located?<BR>usually webs are in subfolders of wwwroot like<BR>c:inetpubwwwrootmyweb<BR>but if your web is the wwwroot folder, the virtual path would be:<BR>right$(physicalpath,len(physicalpath)-19))<BR>(It takes off the c:inetpubwwwroot part of the path)<BR><BR>-- Whol

Posting Permissions

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