Solved

Creating folders/sub-directories with ASP.

Posted on 1998-08-27
3
203 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

707 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

13 Experts available now in Live!

Get 1:1 Help Now