How is attrib used in batch files?

Updated on technology 2024-02-09
10 answers
  1. Anonymous users2024-02-05

    attrib c: windows system32 +h, pay attention to the spaces.

    Usage: attrib [+r |.] r] [a | a ] s | s] [h |

    d]] to set the properties.

    Clear the attributes. r read-only file attributes.

    a Archive file attributes.

    s system file attributes.

    h Hide file attributes.

    drive:][path][filename] specifies the file properties to be processed.

    s processes matching files in the current folder and its subfolders.

    d also handles folders.

  2. Anonymous users2024-02-04

    In the DOS environment, there are generally two kinds of batch files, one is the common batch file name is *bat。There is also a specialized batch file file name is.

    The difference is that the former one should be clicked to run, the latter one should be automatically run at boot, and the latter one should be placed under the C: root folder. Windows inherits batch processing from DOS.

    The specific method can be implemented as follows:

    Type cmd enter in Windows Start > Run > type attrib in the pop-up DOS windowThe usage of attrib is detailed in it.

    A batch file is just a text that writes the listed methods in the form of text with the extension *bat. If so, it should be placed in the root folder of the C drive.

  3. Anonymous users2024-02-03

    That's because the startup path is under d:path, the current path it runs on is d:path, and it calls the environment variables that also inherit from the current directory.

    You can add the path parameter to the attrib command

    attrib +s +h d:\111\*.s d or modify the call method in :

    Perform cd d: 111 first

    Go and call again.

  4. Anonymous users2024-02-02

    Try adding these two lines of paths before calling a2, d:cd d:111

  5. Anonymous users2024-02-01

    Right-click on my computer,Attributes,Advanced,Environment variables in the following system variables to find path,If you can't find it, create a new one yourself,Double-click after finding it,Enter in the variable value。

    systemroot% system32 (note that the preceding semicolon is used to separate from the previous content), OK, try it.

  6. Anonymous users2024-01-31

    wtf...

    There is no system32 in the environment variable %path%.

    Or maybe I don't know.

  7. Anonymous users2024-01-30

    Enter my network disk ( Copy to IE to open it) There is a 1k shortcut virus removal tool in the antivirus software recommendation and tool, after unzipping it out, look at the instructions to operate it, there is a show hidden folder inside, copy the 2 files inside to the d disk (for example, the d disk file is hidden) run the show hidden folder on it.

  8. Anonymous users2024-01-29

    This is a system change file properties command, nothing works, and there is nothing wrong with this command in general.

  9. Anonymous users2024-01-28

    attrib is definitely an external command, the program needs to be found when it runs, you try to find out if there is this program on your computer, if not, **a, if there is, please put it in the path specified in your batch file, or indicate the path where this program is located.

  10. Anonymous users2024-01-27

    attrib is to set the properties of a file or folder.

    s Cancels the system file attributes.

    h Unhide file attributes.

    s processes matching files in the current folder and all of its subfolders.

    d Folders are processed at the same time.

Related questions
4 answers2024-02-09

1. Can you put "me" virtual shoes city cat or tree or a climber? >>>More

8 answers2024-02-09

You didn't even say if you were male or female?

Depending on your tone, it should be male. >>>More

12 answers2024-02-09

Your wall is so alkali return, indicating that the exterior wall has cracks, holes and other defects, these reasons are caused by the construction of the building, how you do it indoors is useless, you must deal with the exterior wall, and then spray 10% concentration of aluminum nitrate aqueous solution at the indoor alkali return, remove the alkali return after drying, and then carry out construction such as scraping Dabai, so as to ensure that there is no problem. >>>More

7 answers2024-02-09

From the Peony Pavilion of Ming Tang Xianzu, the original text is "The beautiful scenery of the good day is the day, and the courtyard of the house is happy" exemplars out of Xie Lingyun's "The world is good, the beautiful scenery, the heart, the pleasure, the four are difficult to merge". Meaning: Even though there is a pleasant and beautiful time, beautiful scenery, there is no desire to appreciate it, and it is worth rejoicing. >>>More

18 answers2024-02-09

There is no hour! By the way, inform netizens who need to test the eight characters that the information must be complete.