www.webdeveloper.com
Results 1 to 6 of 6

Thread: ASP Create Folder and Subfolder Question

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    461

    ASP Create Folder and Subfolder Question

    Hi, I got myself tangled in a web here..

    I am trying to create a folder and a sub-folder at the same time using FileSystemObject.

    The problem is that I am creating the first folder based on a variable (strUserName).. and I need to create a sub-folder within whatever that variable is..

    Am I in big trouble here or is there a solution to this one?

    The code below just makes the "sub-folder" outside the folder I need it in..

    Thanks!


    'Create an instance of the FileSystemObject
    'Dim objFSO
    'Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

    'Create folder
    'If Not objFSO.FolderExists("e:\kunden\homepages\21\ d104772\mysite\members\uploads\" & strUserName & "sub-folder") then
    'objFSO.CreateFolder("e:\kunden\homepages\21\d104772\mendimusic\members\uploads\" & strUserName & "sub-folder")
    'End If
    Last edited by theflyingminst; 02-16-2008 at 08:35 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles