Solved

Creating directories with ASP

Posted on 1998-07-08
6
189 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 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

21 Experts available now in Live!

Get 1:1 Help Now