Using variable to a path

Results 1 to 2 of 2

Thread: Using variable to a path

  1. #1
    Join Date
    Dec 1969

    Default Using variable to a path

    how do i use a variable accepted from an asp form and append it to the path variable. like asking the user to specify a directory in the drop down box and when selected and submitted. That variable is used in the path so that the file to be uploaded will be saved in the directory/folder.<BR><BR>help pls.? thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Using variable to a path

    use this way <BR><BR>dirpath = server.mappath(".") & request.form("dirname")<BR><BR>leads to e:inetpubwwwrootdirname now u can use this path to upload or anything<BR><BR>remember to give full access to that directory make sure that directory exists or not by using the filesystemobject<BR><BR>thats it<BR><BR>happy programming<BR>srinath (<BR><BR>

Posting Permissions

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