473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Create, Delete virtual directory with ASP

I am trying to write code to create and delete a virtual directory with ASP 3.
If it is not possible, then how could I do the same with a physical folder.
any help is appreciated.

Thanks in advance
Jul 19 '05 #1
3 4479
Take a look at FSO

Psuedo code (works in VB, not sure bout ASP).

Dim FSO
Dim Fldr
Dim strPath
strPath = "new_folder"
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Fldr = FSO.CreateFolder(strPath)
Set Fldr = Nothing
Set strPath = Nothing
Set FSO = Nothing

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
banon <bo*****@lycos.com> wrote in message
news:1c**************************@posting.google.c om...
I am trying to write code to create and delete a virtual directory with ASP 3. If it is not possible, then how could I do the same with a physical folder. any help is appreciated.

Thanks in advance

Jul 19 '05 #2
Actually, you are not wrong, the only difference is the path
information and delimiters.
Thanks for the help.
Now if only I can get it to work on response of the button.
I am posting a form which contains the name of the new folder to a
page with the code to create a folder with the name entered.
The usual:
<%
If Request.Form("blah") <> "" Then
DoSub
End If
%>

isn't working.
Any suggestions, or explanations?


"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message news:<#u**************@tk2msftngp13.phx.gbl>...
Take a look at FSO

Psuedo code (works in VB, not sure bout ASP).

Dim FSO
Dim Fldr
Dim strPath
strPath = "new_folder"
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Fldr = FSO.CreateFolder(strPath)
Set Fldr = Nothing
Set strPath = Nothing
Set FSO = Nothing

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
banon <bo*****@lycos.com> wrote in message
news:1c**************************@posting.google.c om...
I am trying to write code to create and delete a virtual directory with

ASP 3.
If it is not possible, then how could I do the same with a physical

folder.
any help is appreciated.

Thanks in advance

Jul 19 '05 #3
Try the following;

<%
If Request.Form("blah") <> "" Then
DoCreateFolder "MyFolder"
End If

Public Function DoCreateFolder(strFolder As String)
Dim FSO
Dim Fldr
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Fldr = FSO.CreateFolder(strFolder)
Set Fldr = Nothing
Set FSO = Nothing
End Function

%>

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
banon <bo*****@lycos.com> wrote in message
news:1c**************************@posting.google.c om...
Actually, you are not wrong, the only difference is the path
information and delimiters.
Thanks for the help.
Now if only I can get it to work on response of the button.
I am posting a form which contains the name of the new folder to a
page with the code to create a folder with the name entered.
The usual:
<%
If Request.Form("blah") <> "" Then
DoSub
End If
%>

isn't working.
Any suggestions, or explanations?


"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message

news:<#u**************@tk2msftngp13.phx.gbl>...
Take a look at FSO

Psuedo code (works in VB, not sure bout ASP).

Dim FSO
Dim Fldr
Dim strPath
strPath = "new_folder"
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Fldr = FSO.CreateFolder(strPath)
Set Fldr = Nothing
Set strPath = Nothing
Set FSO = Nothing

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
banon <bo*****@lycos.com> wrote in message
news:1c**************************@posting.google.c om...
I am trying to write code to create and delete a virtual directory
with ASP 3.
If it is not possible, then how could I do the same with a physical

folder.
any help is appreciated.

Thanks in advance

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Watherton | last post by:
Hi guys, I have been working with .net for nearly a year now, and I would like to move forward and start to learn how to create proper projects, i.e. 3-teir. I have read extensively about the...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
0
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
3
by: Opa | last post by:
Hi, Been stumped for many, many hours trying to create a web service project. I greatly appreciate any help. I get an error everytime I try to use the Visual Studio.NET wizard to create a...
5
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the...
1
by: Loane Sharp | last post by:
Hi there I have a web application created in Visual Studio 2005. The web application is installed in a subdirectory of the wwwroot directory, which is mapped in turn to a virtual directory (IIS,...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.