Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the hidden property of windows folder can not be modified and locked?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to solve the windows folder hidden properties can not modify the locked problem, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

Symptoms:

After the U disk is used on a poisoned computer, all the folders in it disappear because the folder properties inside are changed to hide properties. By viewing and showing hidden folders, it is found that the hidden properties of all hidden folders are locked and cannot be changed back through the right mouse button to view the folder properties.

Reason:

This is because the hidden property is locked by default after adding the system property to the folder.

Solution:

After ensuring that the virus has been killed, you can restore the folder properties in the following ways

Method 1: manually use the attrib command to modify

1. Start menu-- Select "run"-- enter "cmd"

2. Enter the command in dos: attrib c:\ "windows"-s-h (take the windows folder under disk c as an example, where c:\ "windows" is changed to the path of the folder you want to modify)

3. Run this command to remove the hidden properties of the folder.

But we may find that all the folders are hidden, so if you change it one by one, you will be in big trouble.

The above method is suitable for modifying a single folder. For a simple batch modification method, you can use the wildcard * to match the folder in the following format:

1. Suppose all the root folders under disk c are hidden

Attrib c:\ "*"-s-h / s / d

All the hidden properties of the folders under disk c can be removed.

2. Suppose disk d assumes that all root folders under disk c are hidden

Attrib d:\ "*"-s-h / s / d

Others, and so on.

Method 2: use a simple batch method

Create a new text document file, then copy the code into it, select "Save as" and set the file name to the ".bat" suffix format (that is, change the .txt suffix to .bat). Then drag the folder that needs to be modified onto the file and follow the prompts.

If you are infected with the root directory of the U drive, drag the drive letter directly, select 2 all the way and enter.

@ echo off&setlocal enableextensions enabledelayedexpansion

Title solves the problem that folder hidden properties cannot be modified by batch processing

If "% ~ 1" = "" (echo you did not drag any disks or files or folders!

Echo-

Echo, please drag the disk or file or folder to be processed onto the batch file icon

Echo instead of double-clicking to start a batch! & pause&goto: eof)

Call:choose "set hidden file properties, please select:" do not change the setting

(set h =) & (if! C! Equ 2 set hackers -) & (if! C! Equ 3 set hackers +)

Call:choose "set system file properties, please select:" do not change the setting

(set s =) & (if! C! Equ 2 set slots -) & (if! C! Equ 3 set slots +)

Call:choose "sets the scope of application, please select:" File or folder own properties and first-level directory content properties folder first-level directory content properties

For% I in (% *) do (if! C! Equ 1 call:attrib "% ~ I"

For / f "delims="% j in ('dir / a / b "% ~ I") do call:attrib "% ~ I\% ~ j")

Pause&goto: eof

: choose

(set c =) & (set n =) & for% I in (% *) do echo! n!% ~ i&set / a natives 1

(set / p c =) & (set / a cystec) & if! C! Geq 0 if! c! Leq! n! Echo.&goto: eof

Goto choose

: attrib

Setlocal& (set a =) & (set a=%~a1) & if "! a!" = "" goto: eof

If not defined h if "! an else else (set hype -)

If not defined s if "! an else 4 set 1!" = "s" (set slots +)

Echo is processing:% ~ 1&attrib! hourh! sails "% ~ 1" & goto: eof

Echo modified successfully!

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 258

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report