Solved

Creating folders/sub-directories with ASP.

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Read about why website design really matters in today's demanding market.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

15 Experts available now in Live!

Get 1:1 Help Now