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-23 04:56
中国DOS联盟论坛 » 意见反馈 & 网友交流 » [Recommendation] Instructions for Using the DOS Command Prompt Interface in the Forum and Detailed Explanation of Commands DigestI StickyI View 121,897 Replies 156
Floor 16 Posted 2007-01-21 01:01 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by namejm at 2007-1-20 10:21 AM:
The enhancement of the dir function facilitates the collection of valuable posts. However, I still want to make it more convenient to use. I wonder if it can be achieved: After adding the /a parameter to the current dir command, the same record will be displayed in two lines with line breaks. If we want to compile a script to extract valuable posts based on the title, the number of replies, and also refer to the click-through rate, because there are a large number of parity line judgments, the efficiency of the code will be less than ideal. If the same record can be displayed on the same line, it will be more convenient. But in this case, there may be a need to add a horizontal scroll bar (is this what it's called? I don't understand the terms of the web framework, sweat=_=!) in the web page to display the complete content, which may bring some inconvenience to web browsing. How to choose between these?


I just added a /W switch to DIR. This switch is very similar to the existing /V switch, but it will not display information such as moderators and post authors, so there should be no line breaks. For example, set the %DIRCMD% environment variable to /A/P/W and then use the DIR command, or directly add the /W switch to DIR on the command line (but note that if /W and /V are specified at the same time, the former will be ignored, so if there is already a /V switch in %DIRCMD%, you can use DIR /-V/W on the command line to shield /V and enable /W).
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 17 Posted 2007-01-21 01:03 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
The /v mode of dir does indeed increase the amount of information displayed.

But it also brings about the problem of insufficient space on the page as mentioned by namejm.

To solve it, on one hand, we can use the method of increasing the width of the web page (the width of the screen buffer).

On the other hand, we can use the method of dividing into two modes that I once mentioned.

Initial post mode: only display the initial post date, time, author, ID, and title of the topic.

Last reply mode: only display the date, time, replier, ID, and title of the last reply of the topic.

The former can accommodate more information, which is convenient for data extraction in batch processing.

The latter can save page space and does not need to wrap lines or scroll left and right to read.
Floor 18 Posted 2007-01-21 01:10 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
sorry

After replying, I saw the new changes of /W

It feels similar to my train of thought

Just different directions

Different modes have different applications

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

But if custom columns are supported

There is no need to distinguish these modes

You can get dir information more flexibly

Similarly, the output of find can also use the same column control

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

In addition, distinguishing whether it is a new post can add a <New> mark to the topic type

But this also means that each edit/more/type needs to operate this mark

[ Last edited by qzwqzw on 2007-1-20 at 12:15 PM ]
Floor 19 Posted 2007-01-21 01:49 ·  中国 广东 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
I tested with `dir /a /-p /-v /w d:\23`. I found that although the records in the Web page no longer wrap, when saving the Web page as a txt file, there are still a lot of wraps. I don't understand why this is happening for the time being.

In addition, can all the cases in the "Type" column be written into the instructions? It seems that only the four cases of `<DIR>`, `<Top>`, `<Essence>`, `<Lock>` will have marks, and other cases this column is empty. I am worried that if there is any omission, there may be errors when writing code to extract post information. Or add a parameter to filter out the "Type" column to ensure that all columns are not empty, which is convenient for writing extraction code?
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 20 Posted 2007-01-21 02:40 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by namejm at 2007-1-20 12:49 PM:
  Tested with dir /a /-p /-v /w d:\23. Found that although the records in the Web page are no longer displayed in wrapped lines, after saving the Web page as a txt file, there are still a large number of wrapped lines. I still don't understand why.

  Also, can all the situations in the "Type" column be written into the instructions? ...


I don't know which method you used to save it. If you directly click on a place on the screen and then use the mouse to select the text you want to save (or press Ctrl+A to select all), then click "Copy" (or Ctrl+C key), you can save the selected content on the screen, and the saved content has no found wrapped lines (at least I didn't find any).

Now all the situations in the "Type" column have been written into the DIR command part of the instructions.

--------

Next, it's about the problem of custom columns. It has been mentioned in the last two or three posts. The main problem is that the DIR command (and commands like FIND) under DOS/CMD do not have such switches, so I haven't thought of a relatively good implementation plan. A relatively important problem is that many columns seen in the forms of "DIR C:" and "DIR C:\directory" are different, so a relatively reasonable and compatible display column plan is needed. For example, the current /W switch will work in both forms. If some new switches are added, such as adding an option to select whether to display the author or the last poster, its effect will only be effective in the latter. Another plan is to use switches like /V=xx, but obviously it is more complicated to operate, and there is none under DOS/CMD. Maybe a switch like /C can be added to decide whether to display the creation time or the last modification time of the file/directory (the DIR command under DOS/CMD can only display the latter); and add a switch like /T to decide whether to display the type of the file/directory, etc. Since these switches do not exist under DOS/CMD, it is estimated that we can only come up with a relatively good plan by ourselves.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 21 Posted 2007-01-21 03:17 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Then it might be better to change the /V switch from redundant interpretation to view interpretation.

Then it can freely follow each defined column identifier.

A Topic type
D Initiation date T Initiation time I Topic ID O Initiator Q View count S Topic title
E Reply date U Reply time J Reply ID P Responder R Reply count T Reply post title

The current /V switch can be described as /V:EUAIRQOPS

The current /W switch can be described as /V:EUAIRQS

The current /B switch can be described as /V:I

The initiation mode can be described as /V:DTOQIS

The reply mode can be described as /V:EUPRJT

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

And the original switches are recommended to be retained as template views.

Except for /W

Because it is easy to be confused with the /W of CMD DIR

[ Last edited by qzwqzw on 2007-1-20 at 02:38 PM ]
Floor 22 Posted 2007-01-21 03:35 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Regarding the type issue

It is suggested to add a type filtering function using /A

After /A, follow each type mark to implement

D Directory directory/section <DIR>
U Up stickied <top>
C Color highlighted <bright>
E Elite essence <essence>
V Vote vote <vote>
L Lock locked <locked>

In addition, if there is extra effort

The following types can be considered

A Attachment attachment <attachment>
I Image attached image <image>
N New updated <updated>
H Hot hot <hot>

[ Last edited by qzwqzw on 2007-1-20 at 02:45 PM ]
Floor 23 Posted 2007-01-21 03:53 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
In addition, it is suggested to add the 950 code page for traditional Chinese. In this way, it can truly be called a multi-language version.
Floor 24 Posted 2007-01-21 04:00 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The above are all quite advanced options. If there are too many components, the implementation will be extremely complicated. Moreover, some of these items together will affect the view and aesthetics (such as two different dates/times). In order to enhance the realizability and practicality, these contents can be merged or streamlined. For example, the /V option:

D=Date/time
T=Type
I=ID
P=Moderator/Poster (should be able to automatically determine the corresponding item according to different states, for example, the poster will be displayed for files/posts, and the moderator will be displayed for directories/sections, etc.)
N=Quantity (similar to P, should be able to automatically determine the corresponding item according to different states, for example, the number of replies and views will be displayed for files/posts, and the number of files and posts will be displayed for directories/sections, etc.)
S=Name/topic title (Note: The DIR command cannot display the reply post title)

The /A option is basically feasible.

In addition, add a /C option to switch to display the creation date/time, and the default is the last modified date/time.

Since these are still relatively complicated to implement and require adding a lot of code, it will be done in the next version. As for the 950 code page, it needs to rely on Roy.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 25 Posted 2007-01-21 04:14 ·  中国 广东 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Originally posted by Wengier at 2007-1-20 13:40:
I don't know what method you used to save it. If you directly click on a place on the screen and then use the mouse to select the text you want to save (or press Ctrl+A to select all), then click "Copy" (or Ctrl+C), you can save the selected content on the screen. And no line breaks were found in the saved content (at least I didn't find any).

  I saved it directly by clicking File/Save As in the browser. The method you provided indeed doesn't produce line breaks.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 26 Posted 2007-01-21 04:22 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
A very good Web/DOS command prompt, with good functions, which is quite impressive~~~!

1. I wonder if a font size option can be added. The font can be modified. I personally like the default font, but the font size is too large, so the amount of information that can be displayed on the entire layout is limited. And although the font size of size 4 is smaller, I am not used to using this font.

2. When browsing posts in the prompt interface, if there is good content that I want to copy, using the mouse to operate in the prompt interface will make the DOS prompt unresponsive.

3. It would be even better if I can send messages to friends under the prompt.

I found that the time and date under the command line are the local machine's instead of the forum server's time and date.

The command line history feels good. I can use the up and down arrows to select previous input commands, just like the prompt line of AUTOCAD, heh~

[ Last edited by pengfei on 2007-1-21 at 05:19 AM ]
业精于勤而荒于嬉,形成于思而毁于随。
Floor 27 Posted 2007-01-21 05:06 ·  中国 山西 运城 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
You can adjust the font size through "Text Size" in "View" in IE.

After the mouse click loses focus, you can press the Tab key once to get the focus back.

Of course, if there are hyperlinks in the page, you may need to press Tab several times repeatedly.

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

As for the time, yes, it is indeed the local time.

Because Date/TIMe is designed as an "internal command" and does not need to connect to the server.

To get the server time, use net time
Floor 28 Posted 2007-01-21 05:13 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Hehe~ It turns out that you can adjust the font size using the IE menu. The TAB key really can return to the command input state.
业精于勤而荒于嬉,形成于思而毁于随。
Floor 29 Posted 2007-01-21 05:18 ·  中国 广东 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Originally posted by pengfei at 2007-1-20-15-22-15-22:
2. When browsing posts in the prompt interface, if you hope to copy good content, operating with the mouse in the prompt interface will make the DOS prompt unresponsive.

  Although it appears as a character interface, actually it is simulated by a graphical interface. Essentially, this is still a web page interface. Just position the mouse to the command prompt.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 30 Posted 2007-01-21 05:34 ·  中国 山西 运城 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
The word "贴子" frequently appears in the command line prompt. Actually, it should be "帖子". We often confuse the two words "转帖" and "转贴". Although the two words have the same meaning, it doesn't mean the two characters are the same. Because "转贴" can be regarded as a verb, while "转帖" is a verb-object phrase.
Forum Jump: