SoFunction
Updated on 2025-03-09

When entering commands under DOS, you can also use the Tab key to automatically fill commands like Linux.

When entering commands under DOS, you can also use the Tab key to automatically select directories or files like LiUnix.

method:

Modify the registry

operate:

Run regedit
Expand HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
You can see the CompletionChar item on the right, which is of type REG_DWORD. Double-click or enter to open the property settings window. The default value is 40 in hexadecimal. Change the value of this item to 9 in hexadecimal and confirm to exit. It will start to take effect under the newly opened DOS window. When using it, typing the Tab key can allow DOS to automatically complete the filling, which is more convenient. If you don't lose anything in the DOS window, just keep typing the Tab key, and your files and directories will be displayed one by one like a dir list.

It turns out that when I was operating, I sometimes used * to code to long strings. For example, if I want to enter a certain directory, dir first, and the right mouse button is displayed to copy and paste, and the other is to use * to copy and paste.

For example, there are two directories called abcdefg and bcdefgh. If you want to enter abcdefg, you can enter cd a*, and if you want to enter bcdefgh, you can enter cd b*. Now I have found another way, it's good.

The registry file can also be downloaded directly from the one I have exported. Double-click to run the merge, which only contains this change, so you can use it with confidence.