File header isn´t scanned for USB-Sticks

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
User avatar
larsen
Posts: 60
Joined: Thu Mar 20, 2008 10:07 am

File header isn´t scanned for USB-Sticks

Post by larsen » Wed May 11, 2011 12:56 pm

I have set "Browser > File list > Scan file headers in folders" to "Exclude Floppy/CD/DVD". It seems as if XnView only checks the drive name for A: as I have an USB-stick mounted as A:, but XnView doesn´t scan the headers.

Or is this on purpose? I guess USB-sticks are fast enough to not be seen as Floppies.


Cheers
Lars

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Re: File header isn´t scanned for USB-Sticks

Post by Clo » Wed May 11, 2011 3:51 pm

:arrow: larsen

:) Hello !

On principle, A: and B: are always considered as floppies in Windows, and so for ages.
- So, it's normal that XnView treats them in the same way…
- IMHO, it isn't a good idea to use these drive letters for a USB-stick…
Letters like i.e. V: —> Z: should be better and causing not any issue.

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
larsen
Posts: 60
Joined: Thu Mar 20, 2008 10:07 am

Re: File header isn´t scanned for USB-Sticks

Post by larsen » Wed May 11, 2011 4:31 pm

Frankly Sir, I disagree ;-)

I´m using Win XP SP3 and if it completely was considering it to be a floppy, I would be seeing another drive icon. But as I´m not seeing a floppy as an icon, Windows seems to know that the USB-stick is not a floppy =)

I´m a bit out of programming, but afair there should be an API function to get the type of a drive. So, XnView should be able to tell the difference.
and IMHO the golden age of floppies is gone *g*

User avatar
omniplex
Posts: 127
Joined: Thu Feb 10, 2011 1:52 pm
Location: Hamburg
Contact:

Re: File header isn´t scanned for USB-Sticks

Post by omniplex » Sat Jun 11, 2011 6:47 pm

Windows seems to know that the USB-stick is not a floppy
Well, it's an operating system and should know what it is, while XnView is an application only interested in files and folders :wink:

Seriously, there are two ways to format an USB stick: You can have a (dummy) boot sector with a partition table containing one partition covering all remaining sectors - hopefully not more, otherwise you are in trouble. Or you can have only the partition without boot sector, this version is also known as "superfloppy". Distinguishing real floppy, "superfloppy", or other media with a FAT file system is simply not the job of XnView, and the OS will only tell the filesystem type (FAT, CDFS, etc.), removable or not, writable or read only, remote or local. AFAIK there is no "isUSBstick" (or similar) function. In other articles I see that XnView is still supposed to work on Windows 95, IMO a good thing. For backwards compatibility assuming that A: + B: are some kind of floppy makes sense for Windows.

I'm now using a box without A: + B: for some months, and don't miss them. On an older box I still have A: as floppy. Let's discuss your idea again in a few years when any OS older than Windows 8 is history, and when folks don't know what a floppy used to be.

Post Reply