473,386 Members | 1,748 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,386 software developers and data experts.

File path to correct case

In the Windows OS file paths are not case-sensitive.

I wanted to identify where in my HTML-documents I have used incorrect case for any file reference so I could migrate to hosts where case-sensitivity would make misspelled references impossible to find.

The enclosed function takes a path eg
D:\VS FISA WEB\SITES\fisa\MAIN\ES\ACTIVITY.HTM
and, if the file exists (not case sensitive), returns
D:\VS Fisa Web\Sites\Fisa\main\es\activity.htm

Hope it is useful.
Attached Files
File Type: txt FilePathToCorrectCase.txt (1.1 KB, 292 views)
Jan 6 '12 #1
0 1127

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
3
by: VK | last post by:
On Windows platforms path separator "\" collides with the script escape sign "\" Obvious and old way to prevent it is to double backslashes: "\\" But I'm curious if there is a reliable way to...
10
by: darrel | last post by:
I have an input type="file" field that I am using to accept a file upload. This works, but I'm having problems with the filename property. In firefox, this: MyInputField.postedfile.filename ...
3
by: Rudy | last post by:
Hello! I know you can save the file path to SQL from where you took a file from, like c:/documents.mypictures. And you would use the sFileName = browsefile.PostedFile.FileName But if I want...
3
by: Blake McNeill | last post by:
How do you retrieve a file path which was stored in the Registry as a string without ending up with a string which has all the slashes escaped which make it useless for file IO? I can see the file...
6
by: Mohammad Omer | last post by:
Hi, I tried to validate file path without calling file creating functions. Is it possible? How? Regards, -aims
7
by: prakashdehury | last post by:
In my c# application when i use this FileStream fs = File.Open("C:\\Temp\\497_01\\\ \Assumption.txt",FileMode.Open); 1. it works fine, when i ran the exe locally. (e.i : c:\c\temp \Test.exe)...
7
by: Ken | last post by:
I have application files under "C:\$\TestApp". there is a test.xml file under "C:\$\TestApp\test.xml" I made a virtural directory in IIS as "TestApp" currently in application, "Request.MapPath(...
3
by: Carlos Avrard | last post by:
Working with a simple directory/file tree display solution (http://abeautifulsite.net/blog/2007/06/php-file-tree/) I'm able to get the page to display properly, javascript works just fine as well,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.