What's the code for: strFolder =

Author Message
lowanda

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 2/26/2009
  • Status: offline
What's the code for: strFolder = Thursday, February 26, 2009 10:35 PM (permalink)
0
Dear all,

I need help!
Look at this code: strFolder = "C:\temp\files"
It is correct.
But what if I have a folder on a website? I have the folder "files" and I cannot write the correct code.
strFolder = "\files" or strFolder = "files" or strFolder = ".files" do not work...
The file .asp and the folder "files" are in the same directory, can you help me?

Thank you in advance
Lowanda
 
#1
    webber123456

    • Total Posts : 58
    • Scores: 0
    • Reward points : 0
    • Joined: 9/20/2007
    • Status: offline
    RE: What's the code for: strFolder = Friday, February 27, 2009 4:48 AM (permalink)
    0
    to get the physical path of a file or folder, use: "server.mappath"

    if the current folder is : C:\Inetpub\wwwroot\Script\

    then

    server.mappath("data.txt")

    produces

    c:\inetpub\wwwroot\script\data.txt

     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9