Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-06

Re: Drive detection (was: Intel ASM syntax problem)

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Hankovec

For detecting available drives there are routines on: http://www.gdsoft.com/swag/swag.html
(SWAG).
If You download the snippets about drives handling (drives.swg, You ned the viewer too), You will find 5 or more routines for detecting drives, for finding out parameters of drives (CDROM, HDD, FDD) etc. Or write to me, I will send You the package.
But remember to put directive {$ASMMODE intel} to all codes, because there are made for TP and without this directive cannot be compiled under FPC.

Have a good time

Martin H.

Martin Hankovec
This is the first thing that I did, and this was the first place (SWAG) from where I posted the sources. Ok, I just did have a look at the 'complete drive detection' stuff, and that is what gave me problems even with ASMMODE Intel.

I have no problem to compile them. But - I agree that some programs don't work OK. Some detects diskette drive B even if You don't have it, some returns a bit confused list of drives (I have realized, that for example Norton Commander maybe sometimes creates a virtual disk B for copying from diskette to diskette and running Your program from NC will detect drive B). In my unit NGTVIEW for creating text GUI I have leaved the way of list of drives, because I haven't found working routine without direct testing of drives.

But I have test them under WinNT and maybe some problems became from this reason :-) (more mapped drives etc.).

Have a nice day

Martin H.

Martin Hankovec
text GUI? it will be a TUI then? ;-)))

Yes, sorry, You're right, of course. It's TUI :-)))

Martin H.