Last post Oct 13, 2014 05:42 AM by Eileen ni - MSFT
Oct 09, 2014 07:54 AM|vaibhav866|LINK
I am using FileInfo and DirectoryInfo classes to get the info of File/Directory.
Dim objDireInfo As New System.IO.DirectoryInfo("D:\DELME\")
Dim objFileInfo As New System.IO.FileInfo("D:\DELME\Capture.png")
Problem with above is these classes returns me the FullName as I am passing in the constructor at the time of creation of object. I want the name of File/Directory in the same case as it present on the disk.
In above example even though my DELME folder name on the disk is DelMe but above code snippet returns me:
instead I am expecting:
Can anyone give me the pointers or method for, How to get the name of File/Directory in same case as it present on the disk?
Oct 09, 2014 11:46 AM|Siva Krishna Macha|LINK
Hope these links may help
Oct 13, 2014 05:42 AM|Eileen ni - MSFT|LINK
Thanks for your post.
Windows file system is case insensitive, and it showed the directories what you Specifed.You can check
If there's anything else I can do for you regarding this matter, please feel free to post back in this forum.