It's a tough problem, I've been unable to find the answer all the time.............
朙忝亓雙髹钌!
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Internal commands: (Note: These are the internal commands supported in msdos7.X)
Break: Set the check for the command to interrupt the execution of a program via the keyboard. That is, the check for ctrl-C.
Call: Call another batch processing, or executable file, or command
CD / ChDir: Enter directory (exit directory)
CHCP: Modify or display the current code page
Cls: Clear screen
Copy: Copy, duplicate
CTTY: Redirect console input and output to other devices
Date: Display or set the system date
Del / Erase: Delete file
Dir: List files and directory lists
Echo: Display control switch.
Exit: Exit the command environment. (This command environment is created by executing another copy of the new command in the DOS prompt, also called the dos SHELL?)
For: Used to run a specified command or a series of commands. Usually used in batch files, but can also be used after the command prompt.
GoTo: Jump statement
If: Conditional statement
LfnFor: Supports long file names when running the FOR command.
Lock: Lock direct reading of the disk.
MD / MkDir: Create directory
Path: Path
Pause: Pause
Prompt: Set prompt format
RD / RmDir: Delete directory
Rem & ::: Comment
Ren / Rename: Rename, rename
Set: Set
Shift: Shift, used in batch files to change the position of replaceable parameters.
Time: Display and set time
Truename: Display the corresponding relationship between the long file name format and the 8.3 format, or the virtual disk created by the subst command
Type: Display the content of the text file on the screen
Unlock: Unlock direct reading of the disk
Ver: Display the version number of msdos
Verify: Verify. To ensure that the content written to the disk is readable.
Vol: Display the volume label and serial number of the disk.
d:
cd \
dir /ad /on /p /s /w
(User interaction: Observe which directory the test.dat is located in among the command output)
copy con enter.bat
cd (Type Ctrl+Z or press the "F6" key, without parentheses)
(If test.dat is in the first directory, then dir /ad /b /on>>enter.bat)
(If test.dat is in the second directory, then dir /ad /b /o-n>>enter.bat)
enter