Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium



Posted on 2003-03-19
Medium Priority
Last Modified: 2010-04-16
I wannted to write a program that can sort the FAT-TABLE of a FAT32-Drive
and it has to run from MSDOS under Windows!
Something that Windows isn't blocking away!
Question by:Okey
LVL 15

Expert Comment

ID: 8170532
please note that if you "run it from "DOS" under windows", you're not on true DOS and will be "blocked" whatever you try. You need to run it from TRUE DOS, ie having booted on a floppy.
LVL 101

Expert Comment

ID: 8171178
Can MS-DOS work with FAT32?

LVL 15

Expert Comment

ID: 8172159
yes I think. Starting with Win98SE "DOS"

see "boot floppy disk image Win 98" in google

Author Comment

ID: 8173048
You seemed to be right VGR,
but isn't there a possibility
for example in protected mode
with which you can bypass or using Windows?
I thought about direct port access,
something working like Int 25&26
or DOS-Win95 API on INT21 AX=??4? CX=FFFFH.

I thought about to do simply,
what has been done under True DOS
to do under windows.

I don't know what Windows is doing to prevent this,
but it seems that,
the ports are simulated.

But how can this be?
I thought if i do direect access to the hardware
(communication with Drive-Processor)
that it would run,
because I thought that direct Hardware access under
DOS-Shell-Mode is possible.

Am I so wrong?

can someone explain,
how the hardware access is handled for DOS by Windows?

I think here are possibilities hidden.

Maybe someone knows a code solution,
that implements easily a protected mode routine,
that is accessing the nescesary WIN-API's for?

But at least,
I'm searching for something
like a direct Hardware access to a Harddrive
preferably from Realmode,
but protected mode would be OK, too.

I mean DOS Shell can't be emulating all the Hardware,
and I know that the DOS-Shell is working over the protected mode with windows,
especially for IRQ's like INT9 Keyboard Interrupt and so on.
So shouldn't there be a possibility
at least from protected mode?
Maybe implementing WIN-API's over protected mode?

The desired destination language is Turbo Pascal 7.0 and assembly.

I need a real experts comment for!
LVL 50

Accepted Solution

dbrunton earned 100 total points
ID: 8176225
>>> because I thought that direct Hardware access under DOS-Shell-Mode is possible.

The lock command is stopping you.  You have to enable or disable it to permit direct access.

Try lock at the command prompt under the dos window.

You may have to


to get this to work for you.  Be very careful.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What happened when I tried to make my phone, a Samsung Galaxy S8, stop dropping all WiFi signals was a saga I won't repeat here, but what you might want to know is how it started and how I got it working again.
If you try to migrate from Elastix to Issabel, you will face a lot of issues. These problems are inevitable but fortunately, you can fix them. In the guide below, I will explain how I performed the migration while keeping all data and successfully t…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question