How to get current directory?

Results 1 to 4 of 4

Thread: How to get current directory?

  1. #1
    Join Date
    Dec 1969
    Posts
    30

    Default How to get current directory?

    How to get the current directory and save it in a string variable?<BR><BR>Thanks.<BR><BR>Molly

  2. #2
    Stephen Fisher Guest

    Default RE: How to get current directory?

    It is in the server varialbes collection. Off the top of my head I dont know so this will list all of them. Run this code and then pick out what you want.<BR>For each item in request.servervariables<BR> response.write item & "=" & request.servervariables (item)<BR> response.write "<BR>"<BR>Next

  3. #3
    ActiveALLI Guest

    Default RE: How to get current directory?

    if you want the Local Directory of the WebServer use the command MAPPATH <BR>&#060;%<BR>strDIR = MapPath <BR>somefile = strDIR & "somefile.txt"<BR>&#037;&#062;<BR><BR>If you are looking for another directory or something then its is propably some ServerVariable .. for information on available serverVariables go to http://www.asp101.com/samples/servvars.asp<BR><BR>Hope this Helps<BR><BR>ActiveALLI<BR>Software Integrator<BR>OZ.COM<BR><BR>Happy Programming<BR>

  4. #4
    ActiveALLI Guest

    Default Corrcection: RE: How to get current directory?

    that would be Server.MapPath


Posting Permissions

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