Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Read Only" problem 2

Status
Not open for further replies.

Ralph8

IS-IT--Management
Mar 15, 2003
168
US
I have been copying my VB98 (in Visual Studio 6)folder to a CD for backup purposes.

After a long string of good luck, not needing to use any of these BU Cds, I now need to use one.

The PROBLEM: All the files in VB98 were recorded as "Read Only" on the CD, and they read back in as "Read Only".

The QUESTION: Does any one know a way to get the files restored with the original attributes? Most were unmarked, some were "Archived".

TIA

Ralph D. Meredith
 
When you copy files from a CD they are always read only. Because you can't write to a CD. Well OK you can but I digress.

To solve the issue do this.

1) Copy your programs to your folder needed.
2) From the command prompt go to that directory
3) Execute the command attrib /s -r *.*

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Thanks CasperTFG. Worked like a champ.

I would like to believe that I would have thought of that, but I know that I probably wouldn't have. Been too long since I was really DOS proficient.

Thanks again.

Ralph

TIA

Ralph D. Meredith
 
Hi Ralph:

Another suggestion, if I may:

Zip the directory containing your VB files. I like to add a date reference to the Zip file's name. For example, I might create a ZIP file named MyProject20040803.zip.

When unzipping, the files will have the attributes that they had when you zipped them.

Cassandra
 
You could have also simply copied the files from your CD-ROM to your directory, then just select all the files in that directory, rick click, properties, and de-select read-only.

*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
 
You are welcome, Ralph.

Thanks for the star.

I do daily backup of projects that I have worked on during the day, storing the Zip files on a CD. It is a real bonus when one needs to retrieve code from an earlier version. If I know the date when a piece of code was removed, then it is a simple matter of retrieving the appropriate file(s).

Cassandra
[thumbsup2]
 
For any one's info who needs it:

I have been zipping my backups as Cassandra suggested, and an additional benefit is the saving of time. It takes only a third or less time to do it that way.

Thanks again, Cassandra. If the system would let me give you a second star, I would just for the really significant time saving I am experiencing.

Ralph

TIA

Ralph D. Meredith
 
You are very welcome, Ralph!

Glad to be of service.

Another benefit is that the files on the CDs take less room.

Cassandra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top