Solved

Creating directories with ASP

Posted on 1998-07-08
6
209 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

623 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