Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

How can you lock a hard drive partition?

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
durango71
Asked:
durango71
1 Solution
 
2mrchioCommented:
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
 
gaestarCommented:
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
 
durango71Author Commented:
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
 
durango71Author Commented:
2mrchio:  thanks for trying tho.
0
 
cyruslCommented:
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

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now