Solved

Creating folders/sub-directories with ASP.

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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.
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…

777 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