Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 4
Trades: 0
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
 
 
Register now for full access!
Old 02-17-2008, 05:27 AM Re: ASP Create Folder and Subfolder Question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to ASP Create Folder and Subfolder Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.12497 seconds with 12 queries