Solved

Creating directories with ASP

Posted on 1998-07-08
6
198 Views
Last Modified: 2013-12-25
Does anyone know if ASP can be used to create directories on a NT-server via a common browser.
Other solutions that does the trick is also welcome....only "free" ones though..
0
Comment
Question by:lulle
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1858506
You can use FileSystemObject. Here is an example using VBScript:

Set fs = CreateObject("Scripting.FileSystemObject")
fs.CreateFolder("c:\myfolder")

0
 

Author Comment

by:lulle
ID: 1858507
I´m sorry.. but when I try using your code I only get a:
" Object doesn't support this property or method: 'fs.CreateFolder' " message...
U know why??
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1858508
It might be because FileSystemObject doesn't come with IIS. I've also installed Windows Scripting Host, try surf to www.microsoft.com/scripting and install WSH.
I've just looked at MSDN and it says that FileSystemObject is an add-on, so I guess that WSH will install it.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:lulle
ID: 1858509
Thanks... that did it... answer again if u want the points...



0
 
LVL 7

Accepted Solution

by:
BlackMan earned 50 total points
ID: 1858510
You can use FileSystemObject. Here is an example using VBScript:

Set fs = CreateObject("Scripting.FileSystemObject")
fs.CreateFolder("c:\myfolder")

FileSystemObject doesn't come with IIS, it comes with Windows Scripting Host. Surf to www.microsoft.com/scripting and install WSH.

0
 

Author Comment

by:lulle
ID: 1858511
Thanks man.. that really saved my day...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now