473,791 Members | 2,947 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to detect folder exist or not ?

Tee
Hi,

question as subject, can we detect a folder existence on the server ...

and another question, how to know current application folder ?

thanks,
Tee
Nov 18 '05 #1
1 8687
Use the Directory.Exist s method.
Here's more info:
http://msdn.microsoft.com/library/de...xiststopic.asp

For the current folder you may be able to use Server.MapPath.
Here's more info on that:
http://msdn.microsoft.com/library/de...ppathtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Tee" <th*@streamyx.c om> wrote in message
news:Og******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

question as subject, can we detect a folder existence on the server ...

and another question, how to know current application folder ?

thanks,
Tee

Nov 18 '05 #2

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

Similar topics

13
7211
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be created if they don't already exist, and if the drive happens to be one a folder cannot be created on (ie a cdrom drive) it would just be skipped without the code generating any errors. your help on this would be most appreciated. jenny
1
2221
by: Pmcg | last post by:
Hi, I've been using Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) to get the application data folder for ASP.Net applications using IIS5.0 where it works for both the ASPNet machine account and for a different account if i configure the ASP.Net process to run as an alternative account by altering the machine.config file. It gives me back C:\Documents and Settings\myuser\Application Data where i'm using a local user...
1
1238
by: trialproduct2004 | last post by:
Hi all I am having one application where i want to implement new feature that is 'create new folder'. and display new folder name in listview. My listview is editable. My problem is i want to display unique folder name to the user at a time of creating new folder. That is if user click on 'create new folder' by default i am displaying text as 'New folder'. But i want this functionality to be same as that of windows explorer.
3
3022
by: Dan Sikorsky | last post by:
I can send email using C# and SMTP, but keep closing the connection before the .eml file has left the Queue folder. The length of time the .eml file stays in the Queue folder is dependent on the size of that file; big or many attachments increases the time. If I start an internet connection, issue the smtp mail send and then close the connection in my C# program, I need to wait until the .eml file has left the Queue folder. Otherwise,...
0
2065
by: Dan Sikorsky | last post by:
This is a C# console app using SMTP to send an email. The .EML file stays in the Queue folder because I close down the Internet Connection prematurely. What's the best way to keep the Internet Connection live until the IIS server is done sending the email, as evidenced by the .EML file leaving the Queue folder. I can send email using C# and SMTP, but keep closing the connection before
5
3945
by: phillip.s.powell | last post by:
$sql = "SELECT IF((SHOW TABLES LIKE '$subselectTableName'), count(*), NULL) AS numRows FROM $subselectTableName"; I am trying to write a SQL statement that will tell me if a table exists or not, this is because PHP will throw Fatal Errors and halt all programming if the table does not exist that I attempt to query. How do you write an elegant MySQL 4.1+ statement to detect if a table exists or not?
2
2592
by: tatemononai | last post by:
Ok, this is a very unique bug. I have only been able to find one other post related to this online, and everybody who responded misunderstood the problem. I am not trying to reference anything in the BIN folder directly. Here is the problem. I had a site running without any problems, and then all of a sudden it went down and visitors started getting the error message "Directory 'C:\Inetpub\wwwroot\www.mysite.com\bin' does not exist....
5
3019
by: Edgard Guilherme | last post by:
Hello all, b4 anything, i am using iis smtp to send the emails.. is there anyway to detect if the "To" email is a valid one ? Like for eg. To = sadjwqewe@askjqw.com (so this email of course doesnt exist, but is there anyway to detect that ?, or if the email exist but the inbox is full etc..)
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.