TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Andy Visniewski
date: 2004-06-25 18:34:00
subject: case sensitive file check

Is there a way to make Dir() case sensitive?

ex. The filename is "C:\Path\To\File\FILE.txt"
and if you do Dir("C:\path\to\file\file.txt"), it still returns
"FILE.txt", which I guess I could just compare with the original
string because comparing the two strings WOULD BE a case sensitive
check.

But Dir() only returns the file name, and none of the directories, so
I would have do go through each sub-dir there and repeat the same
process, comparing what Dir returned with the string I'm checking.

I'm just wondering if there is a simpler way to this. There must be
some magic swith that I forgot to flip..

Thanks in advance..
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/25/04 6:34:49 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.