Symbolism in dos command in Window

xiaoxiao2021-03-06  17

"," - Cancel all properties:

Case 1: View files for any properties in the current directory

We often use DIR commands in DOS, but we can only see read-only and archived files. I can't see hidden files at all. Sometimes can't play the machine, how to do it in order to save data into DOS, but important documents have hidden. Come slowly? We can have DIR commands to add "," to solve it. For example, important data is in the C: / 12345> folder, but we can't see all after we DIR. Can use C / 12345> DIR, haha! The documents in the 12345 folder come out. Very powerful! Case 2: Cancel all the properties of all files on the hard disk

We can try the following command: c: /> attrib, no reactive on the screen in the screen in the DOS prompt state without reacting, pay attention to whether there is a slight sound of the hard disk, have you seen a hard disk indicator Everything is returned to calm after a moment, as if there is anything. What is it really? You can find a hidden file to see. Such as c: / with directory: c: /> DIR you see anything. Did you lie to you! Go back to try it yourself! "." - You are all my:

There is *. * It is very troublesome, we can use it directly ".", Such as: "Copy." Is equivalent to "Copy *. *". "DEL." Is equivalent to "del *. *". "|" Article - Automatically answer questions from batch files:

When we use batch files, we often encounter users to choose by entering "y" or "n". We can use "|" to help us answer automatic answers. Format: Echo reply | Command file content, for example: echo y | DEL C: / windows / temp /*. automatically answers "Y" when you really delete it.

" " - hide the secret:

We store many important data in your computer. I am afraid that others are destroying and hiding software. I can crack now. How to do it? We can hide one of the places he can't think of. For example, copy 001.txt and 002.txt copies into 003.txt files. Those people will not even have a text, unless you make something big, no one must have a problem. It can be used in the following format: "Copy 001.txt 002.txt 003.txt" I have used it, it is OK. Try it yourself, always listen to others!

":": "Note command line me very line:

In DOS batch files, we often use the REM command to comment command, we can use ":", the effect is the same! && Only the command before the symbol is run successfully, can run the command after the symbol || Only the command in front of the symbol fails to run the commands behind the symbol and multiple commands () group commands on the command line () group command ^ escape characters. Allow command symbols as text; or separate parameters> Echo% Date: ~ 4, 10%: Date of displaying the same day

转载请注明原文地址:https://www.9cbs.com/read-44598.html

New Post(0)