Solved

Creating folders/sub-directories with ASP.

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create animated movies for web page 18 172
xss alert in domino url 9 84
Make a website not indexable by google 6 36
wordpress theme 8 41
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
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…
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.

710 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