Seeking to amend a folder attributes (Hidden, System) tool … …
U disk poisoning, and nothing Folder Options properties.And other means too much trouble, so ……
on the other OK on the computer to kill the
this feature does not seem to be the protection of certain documents can be part of the Super Rabbit
functions such as poisoning the issue of what is the best anti-virus software installed and updated in a timely manner can solve the problem you Richard rain forest wood wind toolbox it there, or www.aslike.net I have written this batch can be amended or disk file or folder inside the System Properties all documents and hidden attributes, it is convenient.
Will be copied to the following Notepad, save as “to amend the system and hidden attributes attribute.Bat” (attention to the quotation marks).
Use, to modify the properties of the disk or file or folder, Until a batch of documents on the icon (which may be a lot of drag), then the prompts on the line.
Note:To change the attributes of the disk, or drag a file or folder icon with a batch file Do not double-click to run this batch.
@ Echo off
setlocal enabledelayedexpansion
title attribute to amend the system and hidden attributes
color f0
mode con:cols = 50 lines = 25
if “% ~ 1 “==”” (
echo you do not have any disk or drag files or folders to Please
echo to deal with the disk, or drag a file or folder batch file map S
echo Do not double-click to start batch
pause
)
:loop
cls
if “% ~ 1 “==”” goto:eof
if not exist “% ~ 1” (echo path does not exist) & pause & shift & goto loop
echo of the current deal with the disk or file or folder:
echo% ~ 1
echo.
Echo choose to carry out the operation, Then enter
echo.
Echo system and increase the hidden attribute ……………………………1
echo reduction system and hidden attributes ……………………………2
echo does not deal with …………………………………………3
echo.
Set / p “c1 = select (1, 2, 3) (not to enter ! c1!, for the default 2):”
if”! c1 !”==” 1 “(set” d = + “) else if”! c1 !”==” 3 “(pause & shift & goto loop) else set “d =-”
set “a =% ~ a1”
if / i “! a:~ 0,1 !”==” d” (
echo.
echo This is a Folder, choose to carry out the operation, and then press Enter
echo.
Echo only the folder itself ……………………………1
echo only to the folder The folders and files ……………2
echo of the directory of all the folders and files …………3
echo.
Set / p “c2 = select (1, 2, 3) (not for the input! C2!, By default 1):”
if”! C2 !”==” 2 “(
pushd”% ~ 1 “
for / f” delims = “%% I in ( 'dir / a / b”% ~ 1 “') do attrib.exe! D! S! D! H”%% i “
popd
) else if”! C2 !”==” 3 “(
for / f” delims = “%% i in ( 'dir / a / b / s”% ~ 1 “') do attrib.exe! D! S! D! H “%% i”
) else (
attrib.exe! d! s! d! h “% ~ 1”
)
) else (
attrib.exe! d! s ! d! h “% ~ 1”
)
pause & shift & goto loop
Leave a Reply
You must be logged in to post a comment.