Solved

How can you lock a hard drive partition?

Posted on 1998-08-11
5
224 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add replacement disk to HP RAID ? 16 109
Xerox color cube copier tech support phone numbers 3 55
Automotive battery with UPS 4 37
Drivers  Repository for Win 7 13 57
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

805 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