Link to home
Start Free TrialLog in
Avatar of mdamjad
mdamjad

asked on

locking

I am using turboc 2.0 and I want to lock floppy drive.
Avatar of anupvijay
anupvijay
Flag of United Kingdom of Great Britain and Northern Ireland image

I assume that your OS is DOS.
What does the LOCK command do on DOS ? Is that what you are looking for?

Cheers.
Avatar of Avik Dasgupta
I think u wan't to lock the device and not allow other processes to access it. But in that case u have to run the locking program as a background job. DOS is not multiprogrammable, in that case u need to go for TSR approach. It is impossible to give u the code but I recommend u to visit
http://amitmathur.8m.com/resources/article4.html

Do not misuse it :-)

Avik.
This has what you require,enabling/disabling the floppy drive using Turboc code:
http://c.ittoolbox.com/code/d.asp?d=2042&a=s
Nice shot ankura,

Turbo C 2.0 still alive?? I was using the 3.0 a few hundred years ago :)
ASKER CERTIFIED SOLUTION
Avatar of ankuratvb
ankuratvb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial