devxlogo

Create a Directory From an ASP Page

Create a Directory From an ASP Page

Question:
How do I create a directory in ASP?

Answer:

Use the ‘CreateFolder’ method of the FileSystemObject object.

Set fs = Server.CreateObject("Scripting.FileSystemObject")fs.CreateFolder ("foldername")

Obviously, you need to have proper permissions to be able to create a directory on the machine.

devx-admin

Share the Post: