China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-06-24 14:04
中国DOS联盟论坛 » 网络日志(Blog) » 2DOS Learning: Language Command Camp (20160203) View 39,817 Replies 120
Floor 61 Posted 2017-08-31 18:21 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Hardware information processing commands
Software data processing commands
File content processing commands
File name processing commands
Folder and directory processing commands

Mainly three types of processing, processing of file content information characters, processing of path definition pointers, ?.
Mainly filtering and adding commands, deleting commands, replacing commands, specifying position commands, searching commands, or similar effects

123456789
223456789
323456789
423456789
523456789 Folder
623456789
723456789
823456789
923456789
|---123456789.txt
|---223456789.txt
|---323456789.txt
|---423456789.txt
|---523456789.txt File name
|---623456789.txt
|---723456789.txt
|---823456789.txt
|---923456789.txt
|----123456789
|----223456789
|----323456789
|----423456789
|----523456789 File content
|----623456789
|----723456789
|----823456789
|----923456789

Search for information on the computer, count lists, tree structures
Implementation of operations on folders, file names, and file contents, classified and abstracted into the concept of text virtual containers

Create a general folder z;
Create 10 folders, each with 10 text files, and each text has 10 lines of numbers, 10 numbers per line.

cd d:

md z

cd z

md 0
md 1
md 2
md 3
md 4
md 5
md 6
md 7
md 8
md 9

cd 0

type con > 0.txt
0123456789
1123456789
2123456789
3123456789
4123456789
5123456789
6123456789
7123456789
8123456789
9123456789

Ctrl+z enter

copy d:\z\0\0.txt d:\z\1\0.txt
copy d:\z\0\0.txt d:\z\2\0.txt
copy d:\z\0\0.txt d:\z\3\0.txt
copy d:\z\0\0.txt d:\z\4\0.txt
copy d:\z\0\0.txt d:\z\5\0.txt
copy d:\z\0\0.txt d:\z\6\0.txt
copy d:\z\0\0.txt d:\z\7\0.txt
copy d:\z\0\0.txt d:\z\8\0.txt
copy d:\z\0\0.txt d:\z\9\0.txt

[ Last edited by zzz19760225 on 2017-10-25 at 19:07 ]
1<词>,2,3/段\,4{节},5(章)。
Floor 62 Posted 2017-08-31 18:21 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Microsoft WIN7 CMD Command Line
WIN key + R
Type CMD and press Enter
Type Enter twice, then cd.. (the second time can press the up arrow key + Enter)
help
help > 1.txt
Copy and paste the content of 1.txt

--------------------------------------------------------------------

For detailed information about a command, type HELP command name
ASSOC Display or modify file extension associations.
ATTRIB Display or change file attributes.
BREAK Set or clear extended CTRL+C check.
BCDEDIT Set properties in the boot database to control boot loading.
CACLS Display or modify the access control list (ACL) of a file.
CALL Call this one from another batch program.
CD Display the name of the current directory or change it.
CHCP Display or set the active code page.
CHDIR Display the name of the current directory or change it.
CHKDSK Check the disk and display status reports.
CHKNTFS Display or modify startup time disk checks.
CLS Clear the screen.
CMD Open another Windows command interpreter window.
COLOR Set the default console foreground and background colors.
COMP Compare the contents of two or two sets of files.
COMPACT Display or change the compression of files on an NTFS partition.
CONVERT Convert a FAT volume to NTFS. You cannot convert the current drive.
COPY Copy at least one file to another location.
DATE Display or set the date.
DEL Delete at least one file.
DIR Display the files and subdirectories in a directory.
DISKCOMP Compare the contents of two floppy disks.
DISKCOPY Copy the contents of one floppy disk to another.
DISKPART Display or configure disk partition properties.
DOSKEY Edit command lines, call Windows commands, and create macros.
DRIVERQUERY Display the current device driver status and properties.
ECHO Display messages or turn command echoing on or off.
ENDLOCAL End the localization of environment changes in a batch file.
ERASE Delete one or more files.
EXIT Exit the CMD.EXE program (command interpreter).
FC Compare two files or two file sets and display the differences between them.
FIND Search for a text string in one or more files.
FINDSTR Search for strings in multiple files.
FOR Run a specified command for each file in a set of files.
FORMAT Format a disk for use with Windows.
FSUTIL Display or configure file system properties.
FTYPE Display or modify the file type used in file extension associations.
GOTO Direct the Windows command interpreter to a labeled line in a batch program.
GPRESULT Display group policy information for a machine or user.
GRAFTABL Enable Windows to display an extended character set in graphics mode.
HELP Provide help information for Windows commands.
ICACLS Display, modify, back up, or restore the ACL of files and directories.
IF Perform conditional processing in a batch program.
LABEL Create, change, or delete the volume label of a disk.
MD Create a directory.
MKDIR Create a directory.
MKLINK Create symbolic links and hard links
MODE Configure system devices.
MORE Display output one screen at a time.
MOVE Move one or more files from one directory to another.
OPENFILES Display the files opened by remote users for file sharing.
PATH Display or set the search path for executables.
PAUSE Stop the processing of a batch file and display information.
POPD Restore the previous value of the current directory saved by PUSHD.
PRINT Print a text file.
PROMPT Change the Windows command prompt.
PUSHD Save the current directory and then change it.
RD Delete a directory.
RECOVER Recover readable information from a damaged disk.
REM Record comments in a batch file or CONFIG.SYS.
REN Rename a file.
RENAME Rename a file.
REPLACE Replace files.
RMDIR Delete a directory.
ROBOCOPY Advanced utility for copying files and directory trees
SET Display, set, or delete Windows environment variables.
SETLOCAL Start localizing the environment changes with a batch file.
SC Display or configure services (background processes).
SCHTASKS Schedule commands and programs to run on a computer on a schedule.
SHIFT Adjust the position of replaceable parameters in a batch file.
SHUTDOWN Make the machine shut down properly locally or remotely.
SORT Sort input.
START Open a separate window to run a specified program or command.
SUBST Associate a drive letter with a path.
SYSTEMINFO Display specific properties and configurations of the machine.
TASKLIST Display all currently running tasks including services.
TASKKILL Terminate running processes or applications.
TIME Display or set the system time.
TITLE Set the window title of the CMD.EXE session.
TREE Display the directory structure of a launcher or path graphically.
TYPE Display the contents of a text file.
VER Display the version of Windows.
VERIFY Tell Windows to verify that files are correctly written to the disk.
VOL Display the disk volume label and serial number.
XCOPY Copy files and directory trees.
WMIC Display WMI information in an interactive command shell.

For detailed information about tools, refer to the command line reference in the online help.

------------------------------------------------------------------------------------

[ Last edited by zzz19760225 on 2017-10-25 at 18:42 ]
1<词>,2,3/段\,4{节},5(章)。
Floor 63 Posted 2017-08-31 18:21 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Forum Command Line http://www.cn-dos.net/forum/cmdprmt.php

Enter help

--------------------------------------------------------------------------------

BREAK Set or clear extended Ctrl+C detection.
CD Display current directory name or change current directory.
CHCP Display or set active code page number.
CLS Clear screen.
CMD Start or refresh command processor.
COLOR Set default console foreground and background colors.
DATE Display current date.
DEL Delete files.
DIR Display directory contents.
ECHO Display messages, or turn command echoing on or off.
EDIT Start file editor, an editor that can be used to create and edit text files.
EXIT Return to web interface.
FIND Search for a string in a file.
FONT List all available fonts or change current font.
GOTO Jump to a labeled line in a batch program.
HELP Provide help information for commands.
HISTORY Display command line history.
IF Perform conditional processing.
MORE Display file contents, one page at a time.
NET Manage current user.
PAUSE Pause program execution and display a message.
POPD Restore the previous value of the current directory saved by PUSHD.
PROMPT Change command prompt.
PUSHD Save current directory for use by POPD command, then change directory.
REM Add comments or explanations.
REN Rename files.
SET Display, set, or delete environment variables.
SHIFT Change the position of replaceable parameters in a batch file.
TIME Display current time.
TITLE Set the window title of the command prompt window.
TYPE Display file contents.
VER Display system version.
VOL Display disk volume label and serial number.

Tip: If you are already logged in, you can add these commands to A:\AUTOEXEC.BAT to customize the command prompt.
--------------------------------------------------------------------------------------

[ Last edited by zzz19760225 on 2017-10-25 at 10:11 ]
1<词>,2,3/段\,4{节},5(章)。
Floor 64 Posted 2017-08-31 18:21 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 65 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 66 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 67 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 68 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 69 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 70 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 71 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 72 Posted 2017-08-31 18:22 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 73 Posted 2017-08-31 18:23 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 74 Posted 2017-08-31 18:23 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
1<词>,2,3/段\,4{节},5(章)。
Floor 75 Posted 2017-08-31 18:23 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Moving Windows Windows with Shortcuts
--------------------------------------------------------------------------------------
Moving Windows with Shortcuts :Cun Nan Bian

Method 1 (Maximized Windows are Ineffective)
1. Switch to the window you need to move using Alt+Tab
2. Press Alt+Space, then press the "M" key
3. Use the arrow keys to move the window

Method 2:
Win+←/→ Move the window to the left half or right half of the screen.

Method 3: (Effective for Multiple Screens)
Win+Shift+ ←/→ Cycle the window to display across multiple screens

Connected to a main and a secondary screen, and the secondary screen is not always on. Some program windows were last closed on the secondary screen, and when opened again, they are not visible on the main screen.
Searched many articles and found this shortcut, which works!

http://blog.sina.com.cn/s/blog_6018427d0102w5pz.html

[ Last edited by zzz19760225 on 2017-10-25 at 13:22 ]
1<词>,2,3/段\,4{节},5(章)。
‹ Prev 1 3 4 5 6 7 9 Next ›
Forum Jump: