I need to determine if a specified path exists, including the case, but .net
isn't making this easy.
system.io.file. exists is case-insensitive. If I create a fileinfo object in
hopes to retrieve the FullName property, or use
System.IO.Path. GetFullPath(Pat h), the exact case used in the search is
returned. In other words, if I ToLower the path, I get a LC path returned.
Any suggestions? 1 1852
My guess would be that you have the proper case if you enumerate the
directories from the parent object (something like
di=di.Parent.Ge tDirectories(di .Name)(0) where di is the DirectoryInfo you
previously found).
You may want to elaborate a bit what is the exact problem it causes in your
application
--
Patrice
"Todd Beaulieu" <To**********@d iscussions.micr osoft.coma écrit dans le
message de news: 66************* *************** **...icrosof t.com...
>I need to determine if a specified path exists, including the case, but .net
isn't making this easy.
system.io.file. exists is case-insensitive. If I create a fileinfo object
in
hopes to retrieve the FullName property, or use
System.IO.Path. GetFullPath(Pat h), the exact case used in the search is
returned. In other words, if I ToLower the path, I get a LC path returned.
Any suggestions?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: R.Wieser |
last post by:
Hello All,
I'm trying to get a "Virtual Listbox" to work. I've currently got a form,
and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and
LBS_NODATA flags on it. I've allso subclassed the window and do see all
kinds of WS_??? messages coming by.
But now I'm stuck :-\
I've got *no* idea what to do next, and all my searching on the web leads me
|
by: mike |
last post by:
Hello,
After trying to validate this page for a couple of days now I was
wondering if someone might be able to help me out. Below is a list of
snippets where I am having the errors.
1. Line 334, column 13: there is no attribute "SRC"
<bgsound src="C:\My Documents\zingwent.mids">
You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is...
|
by: Mike |
last post by:
Hey guys need some help on the steps getting from one point to another.
Here is the easy part.
I have a combo box that is being loaded with 3 choices (small, medium,
large) no problem here. Then I have 6 checkboxes (red, blue, green, yellow,
white, black) no problem here.
Here is where I am hung up, which is unfortunately the biggest piece!
What I would like to do is to allow the user to choose a size and any
|
by: Fran?ois Laroche |
last post by:
hey guys, I know that you will tell me that's easier to do in php or
even in asp, but I just dont have the time to learn it
1- I need a javascript that will show the date of tomorrow
2- I need a javascript that will show the date in 2 days
actually I have a script that show me the current date....
there it is:
<script>
|
by: James Fortune |
last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't
understand why people who know how to write code to completely replace
a front end do not write something that will automate the code that
implements managing unbound controls on forms given the superior
performance of unbound controls in a client/server environment. I can
easily understand a newbie using bound controls or someone with a
tight deadline. I guess I need...
| |
by: moondaddy |
last post by:
I have some text in a page that when a certain even happens, I need to make
it glow from black to red (through a spand of 1 second) pause for a few
seconds, and then slowly change from red to black over a span of 1 second
again. Lastly, this needs to be compatible with NS 4 if possible, or if not
possible, then at least so NS4 doesnt crash or get errors.
This is to flag a user that something has happened.
Thanks.
|
by: vgame64 |
last post by:
Hi, I have been struggling with writing a program for a few hours. The
requirements are that: """You will be writing a program which will
determine whether a date is valid in
terms of days in that month. We are assuming that the year will be
valid 4 digit integer.
So you don't have to think much about that(in terms of validation)
except for the month
of February. If the month is February, then you have to check whether
that year is Leap...
|
by: tonesgirl85 |
last post by:
I need some direction to know if I am on the right track. Please contique program below.
import java.util.*;
public class Roman
{
static Scanner console = new Scanner(System.in);
|
by: svgeorge |
last post by:
I NEED TO COLLECT FROM THE GRIDVIEW(DATASELECTED) IN TO A TABLE(SelectedPayment)
--------------------------------------------------------------------------------
How TO COLLECT THE ROWS CHECKED IN CHECK BOX IN THE DATASELECTED TO ANOTHER GRID VIEW ON CLICLING BUTTON
I NEED TO COLLECT FROM THE GRIDVIEW(DATASELECTED) IN TO A TABLE(SelectedPayment)
SIMILLAR TO HOTMAIL MODEL.....CHECK THE MAILS AND BRING THE CHECKED DATA TO ANOTHER PAGE
|
by: mwhit74 |
last post by:
here is the code:
// CS 200 Lab 11 Problem 3 - phone.cpp
// Test program for the keyToTones function.
#include <iostream>
using namespace::std;
// Definition of the PhoneTones struct
|
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...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |