Solved

Creating folders/sub-directories with ASP.

Posted on 1998-08-27
3
209 Views
Last Modified: 2013-12-25
Is there a way to create folders/sub-directories from ASP?
0
Comment
Question by:MHQ
[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
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 60 total points
ID: 1854622
Use the Windows Scripting Host (WSH -http://msdn.microsoft.com/scripting/)

I found this for you from a guy named Patrick:

'create the reference to the Scripting FileSystemObject
This object comes with IIS4 and the latest PWS. It is installed by default.

Set fs = CreateObject("Scripting.FileSystemObject")

'first get the folder by passing the path of it.
filespec = "c:\"
Set f = fs.GetFolder(filespec)

'now to deal with subfolders
Set fc = f.SubFolders

'then add your folder
fc.Add "tempfolder"

I have an app that exposes all the functionality of the filesystemobject. It
mimics Explorer using this object and exposing the filesystem of the web
server. It adds new folders and deletes folders. You can open folders and
view the contents. Just go to my website http://www.santry.com and take the
link to ASP and then WinASP.

Patrick J. Santry, MCP
Email: Santry@pin-santry.com

I also found a set of functions called ASPFileFunctions. You can download it at www.xs4all.nl/~jarit/asp/
It is 30$ to register


0
 
LVL 3

Author Comment

by:MHQ
ID: 1854623
I don't have IIE4 and the link to the ASPFileFunctions doesn't work... and what can I do at WSH?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1854624
I have no problem acessing http://www.xs4all.nl/~jarit/asp/ 
or the evaluation download page at http://www.xs4all.nl/~jarit/asp/download.html
but then I AM in Holland:

"The easiest way to install the FileFunctions component is to download the easy setup (1.5MB) version. This version includes a user friendly installation program, which automatically installs necessary dll's and registers the component for you.

People who know what they are doing and already have the MSVBVM50.DLL
file (VB5 Service pack 3) on their machine can download the smaller version
(150KB) and register the component by hand by placing the filefunctions.dll
file in their windows system directory and running the command:

regsvr32 filefunctions.dll
<END QUOTE>


RE: WSH:
You can download and install WSH from microsoft and use the example I gave you anyway. It just comes default with IIS4 but the example was not IIS4 specific.

Michel
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

740 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