C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Active Directory »

Create Folders at Server with ASP.NET


Posted Date: 18 Feb 2008    Resource Type: Code Snippets    Category: Active Directory
Author: anish vargheseMember Level: Silver    
Rating: 1 out of 5Points: 10



The code sample below in ASP.NET is useful in creating folders at the server side.



fso = Server.CreateObject("Scripting.FileSystemObject");
fso.CreateFolder("d:\New Folder1");



The example can be explained as follows: Server.CreateObject() will get a reference to the file system at the server. Once we have the reference, and permission, we can create the folder using the file system's CreateFolder () member function.

CreateFolder (), as suggested by the code snippet, takes the path of the directory as an argument.



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
File system operation  .  Asp.net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Convert Image to binary format?
Previous Resource: How to export datagrid content to a Text File
Return to Discussion Resource Index
Post New Resource
Category: Active Directory


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use