dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Createa & Delete directories using ASP

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Createa & Delete directories using ASP

    [Originally posted by raj]

    How can I create and delete a directory using asp?
    I want that the user should be able to go to a page and enter a directory name in a text box. Then it should create a directory on the SERVER (Assumme permissions are available to do this)
    Also, how do I set directory attributes for the new directory from the asp page?

    Thanks

    Raj

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Createa & Delete directories using ASP

    [Originally posted by Marcel Slooff]

    You can do this using the FileSystemObject. Create a reference to this as shown:
    Dim objFSO
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    This object contains various methods, functions and refrences to other objects to to any kind of file and disk handling such as: creating files, creating directories, reading a directory contents and setting attributes.

    Greetz

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center