Solved

Creating directories with ASP

Posted on 1998-07-08
6
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

 

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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

737 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