473,796 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FAT16 vs. FAT32 OR NTFS

I am wondering would this work on FAT16 and FAT32?

if File.Exists("fi lePath\TestingT ester.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.e xe would be called Testin~1.exe

Thank you,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com
Nov 20 '05 #1
7 2482
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******** ********@TK2MSF TNGP09.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******** ******@TK2MSFTN GP10.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.c om> escribió en el mensaje news:CUIbb.149$ vz6.103@edtnps8 4...
| 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******** ********@TK2MSF TNGP09.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******@vodaf one.es> wrote in message
news:ug******** *****@TK2MSFTNG P09.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.c om> escribió en el
mensaje news:CUIbb.149$ vz6.103@edtnps8 4...
| 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******** ********@TK2MSF TNGP09.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.c om> escribió en el mensaje news:NE******** ***********@new s1.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******@vodaf one.es> wrote in message
| news:ug******** *****@TK2MSFTNG P09.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.c om> escribió en el
| mensaje news:CUIbb.149$ vz6.103@edtnps8 4...
| | 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******** ********@TK2MSF TNGP09.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
2959
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 drives? To tracebacks are provided below for more information. This is the version information I get when I start Python ojn my Fedora Core 2 computer. -bash-2.05b$ python Python 2.3.3 (#1, May 7 2004, 10:31:40)
3
453
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" /> <authentication mode="Windows" /> I've got a ASPX page that lists folders and files from a predefined location on the server. These folders and files have access rights set to
6
1661
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 Information Services" NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/
2
3031
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 XP) for read-only purposes. In particular, I want my program to unconditionally be able to read-only open any file--and be able to read all the contents from said fail--which has been marked with any sort of "exclusionary" lock, including write...
2
2776
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 linux to do this, as i presume windows would never allow low level access to the disc like this.
1
2452
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 the file if the file size is greater than 4GB and create a new file with the incoming data. How can I perform the above task . Please guide me. Regards, Amod
1
1667
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 the file if the file size is greater than 4GB and create a new file with the incoming data. How can I perform the above task . Please guide me. Regards, Amod
0
947
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 changed at daylight savings time the timestamps on the destination (NTFS) changed but the source (Fat32) did not. So now it wants to copy the whole source drive because the time stamps are an hour newer than the destinations. It appears FAT32...
6
2794
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 partitions from Red Hat Linux. Someone told me that I will have to mount those FAT32 drives. But I don't know how to mount the drives in linux. Please help me in this matter
0
9685
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, 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...
0
9531
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
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...
0
9055
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, 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...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
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...
1
4120
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
3
2928
bsmnconsultancy
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...

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.