Solved

How can you lock a hard drive partition?

Posted on 1998-08-11
5
223 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
2mrchio:  thanks for trying tho.
0
 
LVL 1

Accepted Solution

by:
cyrusl earned 100 total points
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now