473,395 Members | 2,010 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,395 software developers and data experts.

FAT16 vs. FAT32 OR NTFS

I am wondering would this work on FAT16 and FAT32?

if File.Exists("filePath\TestingTester.exe")

I know that FAT16 uses 8 char file names and that a file longer then this
would be automatically renamed to let's say:

file name TestingTester.exe would be called Testin~1.exe

Thank you,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com
Nov 20 '05 #1
7 2462
Hi Dino,

Long file name (LFN) support is the job of the OS - using whatever file
system it has. Try it on a floppy - <that> certainly won't be NTFS!! ;-)

On FAT, long file names work by using additional directory entries for the
long name and having a reference from that to the file's <actual> directory
entry which will be in the ancient 8.3 format. This allows non-LFN supporting
OS's to play with files without regard to the long filename.

Regards,
Fergus
Nov 20 '05 #2
Thanks Fergus,

I thought the same. However, I am having a problem when trying to update my
applicaton on Win98 (not 2nd edition, or Me).

When I install my application, it will be installed as TestTe~1.exe (and
original name is TestTesting.exe). Now when I do auto update, I do date
comparison to find out which one is newer version, so thet is the place
where my autoupdate does not find the file TestTesting.exe because it is
written as TestTe~1.exe.

I thought it can only be the file name length. What else could it be? It
works just fine on Win93 2nd Ed, Me, 2000, XP

Regards,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Dino,

Long file name (LFN) support is the job of the OS - using whatever file system it has. Try it on a floppy - <that> certainly won't be NTFS!! ;-)

On FAT, long file names work by using additional directory entries for the long name and having a reference from that to the file's <actual> directory entry which will be in the ancient 8.3 format. This allows non-LFN supporting OS's to play with files without regard to the long filename.

Regards,
Fergus

Nov 20 '05 #3
Hi Dino,

Sorry, if it works with everthing except Win98 (1st ed) then I'm not the
one with the answer. :-( I went straight from Win95 to Win2000 with great joy
that I didn't have to get involved with the intermediates.

I can't see that you'd be doing anything wrong in your code, so it must be
a Win98 bug that was fixed in the 2nd ed.. Perhaps there's a Knowledge Base
article on MSDN?

Regards,
Fergus
Nov 20 '05 #4
Thanks Fergus
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
Hi Dino,

Sorry, if it works with everthing except Win98 (1st ed) then I'm not the one with the answer. :-( I went straight from Win95 to Win2000 with great joy that I didn't have to get involved with the intermediates.

I can't see that you'd be doing anything wrong in your code, so it must be a Win98 bug that was fixed in the 2nd ed.. Perhaps there's a Knowledge Base article on MSDN?

Regards,
Fergus

Nov 20 '05 #5
Hello, Dino:

As Fergus said, the long file name support is native for Windows 95 and later and has nothing to do with the format of the disk/partition.
If your program is installed with a short file name (TesTe~1.exe) is because the installation program is not compatible with long file names (almost all 16 bit programs are not LFN aware). You can add a batch file to rename the file after the installation or do it manually. Note that DOS has not LFN support outside the Windows GUI.
It's impossible to disable de long file name support. If the Windows 98 system does not support long file names, the system may have a huge problem and may need reinstalling.

Regards.
"Dino M. Buljubasic" <di*************@rivusglobal.com> escribió en el mensaje news:CUIbb.149$vz6.103@edtnps84...
| Thanks Fergus,
|
| I thought the same. However, I am having a problem when trying to update my
| applicaton on Win98 (not 2nd edition, or Me).
|
| When I install my application, it will be installed as TestTe~1.exe (and
| original name is TestTesting.exe). Now when I do auto update, I do date
| comparison to find out which one is newer version, so thet is the place
| where my autoupdate does not find the file TestTesting.exe because it is
| written as TestTe~1.exe.
|
| I thought it can only be the file name length. What else could it be? It
| works just fine on Win93 2nd Ed, Me, 2000, XP
|
| Regards,
|
| --
| Dino Buljubasic
| Software Developer
| http://rivusglobal.com
|
| "Fergus Cooney" <fi******@tesco.net> wrote in message
| news:%2****************@TK2MSFTNGP09.phx.gbl...
| > Hi Dino,
| >
| > Long file name (LFN) support is the job of the OS - using whatever
| file
| > system it has. Try it on a floppy - <that> certainly won't be NTFS!! ;-)
| >
| > On FAT, long file names work by using additional directory entries for
| the
| > long name and having a reference from that to the file's <actual>
| directory
| > entry which will be in the ancient 8.3 format. This allows non-LFN
| supporting
| > OS's to play with files without regard to the long filename.
| >
| > Regards,
| > Fergus
| >
| >
|
|
Nov 20 '05 #6
The installation program I use is the one I made for my deployment. It is
Windows Installer and it supprts long file named for sure. It installs the
program with its full name, I have checked that. However, I noticed that on
win98 below 2nd ed, the file name gets cut to 8 characters.

Thanks for your help.

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"José Manuel Agüero" <jm******@vodafone.es> wrote in message
news:ug*************@TK2MSFTNGP09.phx.gbl...
Hello, Dino:

As Fergus said, the long file name support is native for Windows 95 and
later and has nothing to do with the format of the disk/partition.
If your program is installed with a short file name (TesTe~1.exe) is because
the installation program is not compatible with long file names (almost all
16 bit programs are not LFN aware). You can add a batch file to rename the
file after the installation or do it manually. Note that DOS has not LFN
support outside the Windows GUI.
It's impossible to disable de long file name support. If the Windows 98
system does not support long file names, the system may have a huge problem
and may need reinstalling.

Regards.
"Dino M. Buljubasic" <di*************@rivusglobal.com> escribió en el
mensaje news:CUIbb.149$vz6.103@edtnps84...
| Thanks Fergus,
|
| I thought the same. However, I am having a problem when trying to update
my
| applicaton on Win98 (not 2nd edition, or Me).
|
| When I install my application, it will be installed as TestTe~1.exe (and
| original name is TestTesting.exe). Now when I do auto update, I do date
| comparison to find out which one is newer version, so thet is the place
| where my autoupdate does not find the file TestTesting.exe because it is
| written as TestTe~1.exe.
|
| I thought it can only be the file name length. What else could it be? It
| works just fine on Win93 2nd Ed, Me, 2000, XP
|
| Regards,
|
| --
| Dino Buljubasic
| Software Developer
| http://rivusglobal.com
|
| "Fergus Cooney" <fi******@tesco.net> wrote in message
| news:%2****************@TK2MSFTNGP09.phx.gbl...
| > Hi Dino,
| >
| > Long file name (LFN) support is the job of the OS - using whatever
| file
| > system it has. Try it on a floppy - <that> certainly won't be NTFS!! ;-)
| >
| > On FAT, long file names work by using additional directory entries
for
| the
| > long name and having a reference from that to the file's <actual>
| directory
| > entry which will be in the ancient 8.3 format. This allows non-LFN
| supporting
| > OS's to play with files without regard to the long filename.
| >
| > Regards,
| > Fergus
| >
| >
|
|
Nov 20 '05 #7
Hi, Dino:

I haven't seen that behavior before and I don't know what can be hapening.
It happens in more Windows 98 Gold systems? That could point to an incompatibility of the installer.
The system you're having trouble with has other files with long file names in the hard disk? It could be a problem with the file system (or any virus, or antivirus, or any third party utility, ...). Have you tried to disable the filename tunneling? It's in the system control panel, Performance tab, Filesystem button, Troubleshoot tab, Disable preserve long file names for old programs (sorry for the translation, I only know the Spanish version) (you will have to reboot).

That's all I can think of. Hope it helps.

Regards.
"Dino M. Buljubasic" <di*************@rivusglobal.com> escribió en el mensaje news:NE*******************@news1.telusplanet.net.. .
| The installation program I use is the one I made for my deployment. It is
| Windows Installer and it supprts long file named for sure. It installs the
| program with its full name, I have checked that. However, I noticed that on
| win98 below 2nd ed, the file name gets cut to 8 characters.
|
| Thanks for your help.
|
| --
| Dino Buljubasic
| Software Developer
| http://rivusglobal.com
|
| "José Manuel Agüero" <jm******@vodafone.es> wrote in message
| news:ug*************@TK2MSFTNGP09.phx.gbl...
| Hello, Dino:
|
| As Fergus said, the long file name support is native for Windows 95 and
| later and has nothing to do with the format of the disk/partition.
| If your program is installed with a short file name (TesTe~1.exe) is because
| the installation program is not compatible with long file names (almost all
| 16 bit programs are not LFN aware). You can add a batch file to rename the
| file after the installation or do it manually. Note that DOS has not LFN
| support outside the Windows GUI.
| It's impossible to disable de long file name support. If the Windows 98
| system does not support long file names, the system may have a huge problem
| and may need reinstalling.
|
| Regards.
|
|
| "Dino M. Buljubasic" <di*************@rivusglobal.com> escribió en el
| mensaje news:CUIbb.149$vz6.103@edtnps84...
| | Thanks Fergus,
| |
| | I thought the same. However, I am having a problem when trying to update
| my
| | applicaton on Win98 (not 2nd edition, or Me).
| |
| | When I install my application, it will be installed as TestTe~1.exe (and
| | original name is TestTesting.exe). Now when I do auto update, I do date
| | comparison to find out which one is newer version, so thet is the place
| | where my autoupdate does not find the file TestTesting.exe because it is
| | written as TestTe~1.exe.
| |
| | I thought it can only be the file name length. What else could it be? It
| | works just fine on Win93 2nd Ed, Me, 2000, XP
| |
| | Regards,
| |
| | --
| | Dino Buljubasic
| | Software Developer
| | http://rivusglobal.com
| |
| | "Fergus Cooney" <fi******@tesco.net> wrote in message
| | news:%2****************@TK2MSFTNGP09.phx.gbl...
| | > Hi Dino,
| | >
| | > Long file name (LFN) support is the job of the OS - using whatever
| | file
| | > system it has. Try it on a floppy - <that> certainly won't be NTFS!! ;-)
| | >
| | > On FAT, long file names work by using additional directory entries
| for
| | the
| | > long name and having a reference from that to the file's <actual>
| | directory
| | > entry which will be in the ancient 8.3 format. This allows non-LFN
| | supporting
| | > OS's to play with files without regard to the long filename.
| | >
| | > Regards,
| | > Fergus
| | >
| | >
| |
| |
|
|
Nov 20 '05 #8

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

Similar topics

3
by: Tim Gahnstrom | last post by:
rdiff-backup is aperently written in Python and when I run it in a special way I get some funy Python errors. Does anyone know if linux python have some issues with working with fat32 or usb...
3
by: Pål Andreassen | last post by:
Running Windows 2003 Server Framework 1.1 A site is configured to use integrated security (in IIS 6) Windows autentication and user impersonation in web.config <identity impersonate="true" />...
6
by: clintonG | last post by:
I'd be interested in comments pro or con about using -- or not using -- the FAT32 file system for ASP.NET development and testing. -- <%= Clinton Gallagher METROmilwaukee "Regional...
2
by: Matt | last post by:
Hello, In my application that I'm writing in C++ (and maybe Java), specifically the cygwin flavor of C++, I want to be able to open any existing files in FAT32 or NTFS file systems (in Windows...
2
by: Rob | last post by:
Does anyone have any idea of any API that exists, or functions that others have created to find out the start cluster address of any particular file on a FAT32 formatted disc. I dont mind using...
1
by: Amod | last post by:
Hi, I m copying data from a video stream on the hard disk using a C++ programme in win32 API. my current file system is FAT32 .. the file size limit of FAT32 is 4GB. I want to automatically split...
1
by: Amod | last post by:
Hi, I m copying data from a video stream on the hard disk using a C++ programme in win32 API. my current file system is FAT32 .. the file size limit of FAT32 is 4GB. I want to automatically split...
0
by: Mike H | last post by:
I have a program that copies files based on file dates: if the source file is newer than the destination file then the source file overwrites the destination. The problem is, when the clocks...
6
AmberJain
by: AmberJain | last post by:
I have installed Red Hat linux a few days ago and then I accessed ext3/ext2 partitions (on which linux is installed) from windows using some third party software. Now I wanna access FAT32...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
0
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,...

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.