CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Posts
    34

    whats the directory??

    what is the easiest way using basic asp to find out what directory the file is calling from. I know there is the getfilename method but you specify what the directory is from the start.. i need this to work dynamically as i am creating folders dynamically where files that are named after the folders are being created dynamically as well inside those folders and i want to access the file.

    ex.. "..\Folder1\Folder1.asp"
    i need to access Folder1.asp from lets say upload.asp.. i'm thinking i can do this by passing variables over multiple pages.. about 3 or 4 .. but thats just annoying.. is there an easy way to do this?

  2. #2
    Join Date
    Nov 2002
    Location
    Columbus, Ohio
    Posts
    117
    Im not sure if i understand what you want,

    document.myform.urlstring.value = location.href;
    Its better to have people think you're a fool than to open your mouth and remove all doubt.

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

Featured