Solved

How can you lock a hard drive partition?

Posted on 1998-08-11
5
226 Views
Last Modified: 2010-04-12
I want to be able to lock a hard drive partition, or maybe a drive letter created using the SUBST command, so that it looks like a CD-ROM to the OS.  How can this be done?  Is there a DOS command that will do this, or a freeware utility?  If you use a utility like FakeCD or Fakedr, will the drive be just like a CD, i.e. unwriteable?  I need to be able to test out programs before I burn them to a CD to make sure they can run from the CD.
0
Comment
Question by:durango71
5 Comments
 

Expert Comment

by:2mrchio
ID: 1122578
Well, when you write to a CD, it automatically write-protects all of the files (adds the "ATTRIB +R" attribute).  Why not just run "ATTRIB +R" in every directory you wish to test?  That seems like an easy way to simulate a CD...

BT

0
 
LVL 1

Expert Comment

by:gaestar
ID: 1122579
i don't know if you are using win 95 or win nt.  if you are using windows nt, the best solution is to change the right on your partition and set it to read only.  If you are using win 95 you can change the attributes with attrib +r but it's very long and you must repeat the operation each time you create a new file.
A solution which is sometimes possible on hard drive is to set a jumper to change it on read only hard drive but you can't write on it anymore.  The best solution i see for you is to migrate to windows nt and give you all the rights on the partition and select the right for the others users.
I hope it's helpful for you
Good luck
0
 

Author Comment

by:durango71
ID: 1122580
Changing attribs on all the files to read-only will not prevent the OS or the programs from creating new files in those directories.

0
 

Author Comment

by:durango71
ID: 1122581
2mrchio:  thanks for trying tho.
0
 
LVL 1

Accepted Solution

by:
cyrusl earned 100 total points
ID: 1122582
If this machine has networking installed, you can create a read-only share on the machine.  Then map a drive to that share (Even though it's on the same machine).  You won't be able to modify the files on that mapped drive.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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