getting directory path

Results 1 to 2 of 2

Thread: getting directory path

  1. #1
    Join Date
    Dec 1969

    Default getting directory path

    I am mapping a specific directory from my web server onto another person in my company&#039;s pc. The folder is for instance C:inetpubwwwrootdeptits. What I&#039;m trying to do is have them create a folder from their mapped drive. Their mapped drive for instance would be i:its. I can only get the directory created if I put the full path (c:inetpub...) into the web page where it is creating the folder. i can assume the path will start with c:inetpubwwwroot and hardcode that in the code, but how will i assume dept comes after when the user can only see its? confused? let me know if you need more explanation... here&#039;s my code:<BR><BR>Dim objFSO<BR>Dim tdir<BR>tdir = Request.Form("dir")<BR><BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR><BR>&#039;Create C:FooBar<BR>If Not objFSO.FolderExists(tdir) then<BR> objFSO.CreateFolder(tdir)<BR>End If<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: getting directory path

    Try creating a virtual directory to the user&#039;s PC from IIS.

Posting Permissions

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