Reply
ASP Create Folder and Subfolder Question
Old 02-17-2008, 12:46 AM ASP Create Folder and Subfolder Question
Junior Talker

Posts: 1
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\d1047 72\mendimusic\members\uploads\" & strUserName & "sub-folder")
'End If
mendir200 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-17-2008, 04:27 AM Re: ASP Create Folder and Subfolder Question
chrishirst's Avatar
Super Moderator

Posts: 11,865
Location: Blackpool. UK
you cannot create TWO folders at once using the FSO

check for and create the user folder first THEN concatenate the subfolder and create that
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to ASP Create Folder and Subfolder Question
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11506 seconds with 13 queries