To All:
In a pure DOS environment without loading any Chinese character system or platform, how to enter a Chinese - named directory is an old problem. It may be encountered when using a boot disk to restore the system. If the directory where the Ghost image is located has a Chinese name, an ordinary Win98 boot disk definitely has no Chinese environment support. At this time, what should we do?
A classic and popular solution is to use dir>file, then edit file, keep the Chinese garbled part, then add cd space in front, save it as enter.bat, and then return to DOS, and then you can enter the Chinese - named directory by entering enter.
However, this is not the original intention of "old problem new medicine". My question is, how to enter a Chinese - named directory using only internal commands, so edit is ruthlessly abandoned.
The detailed description of the question is as follows:
1. There is only one directory named "Test" under the target disk D:. How to enter this directory at the command line using only DOS internal commands.
2. There are two directories under D:, named "Test" and "test" respectively, the rest are the same as 1;
3. There are two directories under D:, named "Test" and "Test 2" respectively, the rest are the same as 1;
4. There are two directories under D:, both with Chinese names, and only one directory contains a file named test.dat. How to enter this directory at the command line using only DOS internal commands;
5. There are three directories under D:, all with Chinese names, and only one directory contains a file named test.dat, the rest are the same as 4;
6. There are three directories under D:, named "Test 1", "Test 2", "Test 3" respectively. How to enter the "Test 2" directory at the command line using only DOS internal commands;
7. There are three directories under D:, named "Test One", "Test Two", "Test Three" respectively. How to enter the "Test Three" directory at the command line using only DOS internal commands;
Last: Realize the above requirements in a batch file. No external commands can be used in the batch file either.
[ Last edited by willsort on 2006 - 4 - 18 at 23:25 ]
In a pure DOS environment without loading any Chinese character system or platform, how to enter a Chinese - named directory is an old problem. It may be encountered when using a boot disk to restore the system. If the directory where the Ghost image is located has a Chinese name, an ordinary Win98 boot disk definitely has no Chinese environment support. At this time, what should we do?
A classic and popular solution is to use dir>file, then edit file, keep the Chinese garbled part, then add cd space in front, save it as enter.bat, and then return to DOS, and then you can enter the Chinese - named directory by entering enter.
However, this is not the original intention of "old problem new medicine". My question is, how to enter a Chinese - named directory using only internal commands, so edit is ruthlessly abandoned.
The detailed description of the question is as follows:
1. There is only one directory named "Test" under the target disk D:. How to enter this directory at the command line using only DOS internal commands.
2. There are two directories under D:, named "Test" and "test" respectively, the rest are the same as 1;
3. There are two directories under D:, named "Test" and "Test 2" respectively, the rest are the same as 1;
4. There are two directories under D:, both with Chinese names, and only one directory contains a file named test.dat. How to enter this directory at the command line using only DOS internal commands;
5. There are three directories under D:, all with Chinese names, and only one directory contains a file named test.dat, the rest are the same as 4;
6. There are three directories under D:, named "Test 1", "Test 2", "Test 3" respectively. How to enter the "Test 2" directory at the command line using only DOS internal commands;
7. There are three directories under D:, named "Test One", "Test Two", "Test Three" respectively. How to enter the "Test Three" directory at the command line using only DOS internal commands;
Last: Realize the above requirements in a batch file. No external commands can be used in the batch file either.
[ Last edited by willsort on 2006 - 4 - 18 at 23:25 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!

