Solved

How can you lock a hard drive partition?

Posted on 1998-08-11
5
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
S2D for SMB or vSAN 1 107
Recomended server racks 3 67
Web Cam for Skype 1 37
windows 10 7 66
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.

759 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