batch change .JPG attritubute to read only

  • Thread starter Thread starter PerthMETRO.net
  • Start date Start date
P

PerthMETRO.net

looking for a small simple app(prefer command line) that can change a
folder and all its subdirectories attributes to read only...

I just a had a back up nightmare!
 
looking for a small simple app(prefer command line) that can change a
folder and all its subdirectories attributes to read only...

Two possibilities in Windows:

1. Rightclick on the folder,
Select Properties...
Set attributtes as wanted
OK
Answer Yes to
'Apply change to this folder, subfolders and files'.

2. Make a search for *.jpg
Select all files in the search result window by 'Ctrl + A'
Rightclick,
Select Properties...
Set attributtes as wanted.
OK

Regards
Thorkild Dalsgaard
 
looking for a small simple app(prefer command line) that can change a
folder and all its subdirectories attributes to read only...

I just a had a back up nightmare!

attrib +r *.* /s does the job, I guess
How's that for freeware ?
 
PerthMETRO.net said:
looking for a small simple app(prefer command line) that can change a
folder and all its subdirectories attributes to read only...

I just a had a back up nightmare!

Go here:

http://www.crystalsoftware.com.au/desktop.html

At the botton of the page is a 1kb download which is a zipped reg file
which adds 'remove readonly' to the right click menu.

Or you can c+p this, excuding the ====== and name it something.reg and
import it into the registry (this is the reg file in the zip file.

=====================================================
REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\readonly]
@="Clear Read Only flag"

[HKEY_CLASSES_ROOT\Directory\shell\readonly\command]
@="attrib -R \"%1\\*.*\" /s"
=====================================================

I came across this a couple of months ago and tested it at once. It
works and is rather satisfying.
 
PerthMETRO.net said:
looking for a small simple app(prefer command line) that can change a
folder and all its subdirectories attributes to read only...

I just a had a back up nightmare!

Try Attribute Changer at http://www.petges.com. Not command - line, but
integrates into Windows Explorer as a shell extension. You can specify
custom filters as well (e.g change read - only attribute only for *.jpg
files).

HTH,
Mario
 
On Mon, 19 Jul 2004 20:19:05 +0200, Thorkild Dalsgaard wrote...
Two possibilities in Windows:

1. Rightclick on the folder,
Select Properties...
Set attributtes as wanted
OK
Answer Yes to
'Apply change to this folder, subfolders and files'.

I presume this is for XP (ME/NT/2000?) only - certainly won't work in
Win98SE.
 
attrib +r *.* /s does the job, I guess
How's that for freeware ?

Kinda dangerous if run from the root directory. Specify a path to the
first subdirectory desired. Then it will recurse automatically to all
subdirectories. For example:

c:\a\b\c\d

where all files in folders from b through d are to be affected and
folder d is the last one.. Then:

attrib +r c:\a\b\*.* /s


Art
http://www.epix.net/~artnpeg
 
Back
Top