• DOS mode in the registry to operate the code


    Because the registry editor Regedit.exe In fact, it is a two habitat program, which can run under DOS or windows 95 / 98. Many users may already know how to use regedit in windows, so to master the registry programming in DOS mode, we must first understand how to use the registry editor in DOS.Type […]

  • Refer to page 1 / 2 for the function of symbols under super detailed CMD DOS


    1、 Single symbol~① In for, it means to use enhanced variable extension.② In% var: ~ n, M%, represents a string that uses the extended environment variable to specify the location.③ In set / A, it represents a unary operator and negates the operands bit by bit. !① In set / A, the unary operator represents […]

  • DOS command batch delete files and make the batch command of the command detailed explanation


    Click “start” → “run”, enter “CMD” and press enter. Then, in the command prompt window, enter:del F:\_ desktop.ini /F / S / Q / AForcibly delete all files in the directory of disk f (including disk x itself)_ desktop.ini File and do not prompt to delete./F means force delete file/S means to delete the file […]

  • DOS directory jump CD


    For example, when we open a command line window, we usually operate as follows: find the start menu in the lower left corner of the desktop, open run, enter CMD, and enter. At this time, the default current directory of the command line window is located in the path of the current user, for example: […]

  • DOS content redirection


    Is there any way to save the help information displayed in the command line window? The answer is yes, and there is more than one answer. A slightly more cumbersome way is to copy the information in the command line window, and then paste it into the text to save it. This operation is more […]

  • DOS if condition judgment


    1. To determine whether a drive, file or folder exists, use the if exist statement;2. Judge whether two strings are equal, and use if “string 1” = = = string 2 “statement;3. To judge whether two values are equal, use the if value 1 equ value 2 statement;4. Judge whether a variable has been assigned, […]

  • DOS process jump to goto


    If you need to perform different operations for different situations, if you still follow the conventional execution process, you can’t complete the task. At this time, you need to introduce the concept of process jump and use the process jump statement goto. The meaning of process jump is: change the default execution order, force jump […]

  • DOS file copy command


    Let’s say that you need to put D: test\ test.txt Copy this file to the root directory of disk D, then use copy D:: test\ test.txt d: You can do it easily. Of course, this is the simplest case, in actual use, it will encounter very complex situation. If a file named test.txt Then, when […]

  • DOS file delete del command


    The use of del command is very simple, just use the format of “del file path”. For example, if you want to delete the test.txt , using del D:\ test.txt That’s it.However, not all files can be done with del command, such as files with hidden attribute, read-only attribute or system attribute\ test.txt It has […]

  • DOS rename file (folder) Ren


    The usage of Ren is very simple, and its format is: Ren old file new file name. For example, put test.txt Rewrite as abc.txt , using Ren test.txt abc.txt That’s it. It should be noted that the old file can use either absolute path or relative path, but the new file name cannot use any […]

  • DOS create folder MD


    If you want to create a folder with spaces or &, you need to use quotation marks to enclose the folder name, for example: MD “test ABC”, MD “ABC & XYZ”. What happens if you don’t use quotation marks? The results are as follows 1. If the folder name has spaces, the MD test ABC […]

  • DOS delete folder Rd


    The answer is no, because deleting a folder must use the RD command, which is called professional^_ ^。 Another way to write RD is rmdir, which comes from remake directory. The method is also very simple: Rd folder name, for example: Rd test. It supports folder names with paths, for example: Rd D:: test. Sometimes, […]