|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2007-1-20 10:21 AM:
dir 功能的增强,方便了有价值帖子的收集,不过我还想让它使用起来能更方便一点,不知道能否实现:现在的dir命令加上 /a 参数之后,同一条记录将分成两行折行显示,若要按照标题及回帖数量再参考点击率来编一段脚本提取有价值的帖子的话,因为存在大量的奇偶行判断,代码的效率将不甚理想,若能把同一条记录显示在同一行上的话,就比较方便了。但是这样一来的话,在网页中就有可能需要增加水平滚动条(是这样称呼的么?对网页框架的术语不太懂,汗=_=!)来显示完整内容,有可能给网页浏览带来一些不便。这该如何取舍是好?
我刚才已给DIR加上了一个/W开关,这个开关和现有的/V开关十分类似,但将不显示版主、发帖人等信息,这样应该就不会折行了。比如将%DIRCMD%环境变量设为/A/P/W再用DIR命令,或者直接在命令行下给DIR加上/W开关即可(不过注意如果同时指定/W和/V的话前者将被忽略,所以如果%DIRCMD%中已有/V开关的话可在命令行下使用DIR /-V/W来屏蔽/V并启用/W)。
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和雨露,谢谢!)
 |
|
2007-1-21 01:01 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
dir 的/v模式确实增加了显示的信息量
但同时也带来了namejm所说的版面空间不足的问题
解决它一方面可以使用加大web页面的宽度(屏幕缓冲区的宽度)
另一方面也可以使用我曾经提到的分为两种模式的方法
最初发起模式:只显示主题的最初发起日期、时间、作者,ID、标题
最后回复模式:只显示主题的最后回复日期、时间、回复者、ID、标题
前者可以容纳更多的信息量,便于批处理的数据抽取
后者可以节约版面空间,不需要折行或左右拖动阅读
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.
|
|
2007-1-21 01:03 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
sorry
回复后才看到/W的新变化
感觉与我的思路相类似
只是方向不同而已
不同模式有不同的应用
---------------------------------------
但如果支持自定义列的话
就不用区分这些模式了
可以更加灵活的获取dir信息
类似的find的输出也可以采用一样的列控制
---------------------------------------
另外,区分是否新帖可以在主题类型上加上<新>的标记
但这也意味着每次 edit/more/type 需要对这个标记进行操作
Last edited by qzwqzw on 2007-1-20 at 12:15 PM ]
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 ]
|
|
2007-1-21 01:10 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
用 dir /a /-p /-v /w d:\23 测试了一下,发现虽然Web页里的的记录不再折行显示,但是,把Web页保存为txt文件之后发现还是存在大量的折行,暂时还不明白是怎么回事。
另外,能否把 类型 这一列的所有情形写入使用说明中?似乎只有<DIR>、<顶>、<精>、<锁>这四种情形才会有标记,其他情形此列为空,我担心如果有所遗漏的话,写代码提取帖子信息有可能出错。或者添加一个参数,把类型这一列过滤掉,以保证所有的列都不为空,方便编写提取代码?
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没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2007-1-21 01:49 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2007-1-20 12:49 PM:
用 dir /a /-p /-v /w d:\23 测试了一下,发现虽然Web页里的的记录不再折行显示,但是,把Web页保存为txt文件之后发现还是存在大量的折行,暂时还不明白是怎么回事。
另外,能否把 类型这一列的所有情形写入使用说明中? ...
我不知道您是用何种方式保存的,如果直接点击屏幕上的一处然后用鼠标选择想保存的文字(或者按Ctrl+A键全选),然后点“复制”(或Ctrl+C键)即可将屏幕上选定的内容保存下来,而且保存下来的内容没有发现有折行(至少在我这儿没有发现)。
现已将类型这一列的所有情形写入使用说明的DIR命令部分。
--------
下面,就是有关自定义列的问题了,上面两三个帖子中都有提到。问题主要在于DOS/CMD下的DIR命令(以及FIND等命令)均没有这种开关,所以我还没有想到一个比较好的实现方案。一个比较重要的问题是"DIR C:"和"DIR C:\目录"这两种形式所看到的许多列都是不同的,所以需要一个比较合理的并能做到兼顾的显示列方案。比如说现在的/W开关在这两种形式下都会起作用,如果加上一些新开关,比如加上一个选择是显示作者还是显示最后发帖人的选项的话,其作用只会在后者中有效。另一种方案是使用诸如/V=xx这种形式的开关,但显然操作起来比较复杂,而且DOS/CMD下也没有。或许可以加上一个诸如/C的开关,来决定是显示文件/目录的建立时间还是最后修改时间(DOS/CMD下的DIR命令则只能显示后者);再加上一个诸如/T开关来决定是否显示文件/目录的类型等。由于这些开关在DOS/CMD下均不存在,所以估计只能靠我们自己来想出一个比较好的方案了。
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和雨露,谢谢!)
 |
|
2007-1-21 02:40 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
那不如把 /V 开关由冗余解释改为视图解释
其后可以自由跟随各个定义列标识
A 主题类型
D 发起日期 T 发起时间 I 主题ID O 发起人 Q 查看数 S 主题标题
E 回复日期 U 回复时间 J 回复ID P 回复人 R 回复数 T 回复帖标题
现在的 /V 开关可以描述为 /V:EUAIRQOPS
现在的 /W 开关可以描述为 /V:EUAIRQS
现在的 /B 开关可以描述为 /V:I
发起模式可以描述为 /V:DTOQIS
回复模式可以描述为 /V:EUPRJT
-----------------------------------------------------------------
而原来的开关建议保留,作为模版视图
除了 /W
因为容易与CMD DIR的/W相混淆
Last edited by qzwqzw on 2007-1-20 at 02:38 PM ]
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 ]
|
|
2007-1-21 03:17 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
关于类型问题
建议增加使用 /A 的类型过滤功能
/A 后跟随各个类型标记实现
D Directory 目录/版块 <DIR>
U Up 置顶 <顶>
C Color 高亮 <亮>
E Elite 精华 <精>
V Vote 投票 <票>
L Lock 锁定 <锁>
另外,如果有余力的话
可以考虑实现以下的类型
A Attachment 附件 <附>
I Image 附图 <图>
N New 更新 <新>
H Hot 热点 <热>
Last edited by qzwqzw on 2007-1-20 at 02:45 PM ]
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 ]
|
|
2007-1-21 03:35 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
另外,建议代码页加上950的繁体中文
这样就可以真正称得上多语言版了
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.
|
|
2007-1-21 03:53 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
上面这些都是相当高级的选项,如果构件太多的话实现起来将极为复杂。而且其中有些项目拼在一起会影响视图和美观(比如两种不同的日期/时间)。为了加强可实现性和实用性,可以将这些内容合并或精简一下。比如/V的选项:
D=日期/时间
T=类型
I=ID
P=版主/发帖人(要能自动根据不同的状态来决定相应的项目,比如说对于文件/帖子将显示发帖人,对于目录/版块将显示版主,等等)
N=数量(与P类似,要能自动根据不同的状态来决定相应的项目,比如说对于文件/帖子将显示回复数和查看数,对于目录/版块则显示文件数和帖子数,等等)
S=名称/主题标题(注:DIR命令不可能显示回复帖标题)
/A的选项基本上还可行。
另外加上一个/C选项来切换为显示建立日期/时间,默认则为最后修改日期/时间。
由于这些实现起来仍然比较复杂,需要加不少代码,所以由下一个版本来做吧。至于950代码页则需要靠Roy了。
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和雨露,谢谢!)
 |
|
2007-1-21 04:00 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
Originally posted by Wengier at 2007-1-20 13:40:
我不知道您是用何种方式保存的,如果直接点击屏幕上的一处然后用鼠标选择想保存的文字(或者按Ctrl+A键全选),然后点“复制”(或Ctrl+C键)即可将屏幕上选定的内容保存下来,而且保存下来的内容没有发现有折行(至少在我这儿没有发现)。
我是直接在浏览器里点 文件/另存为 保存的,用你提供的办法确实不会产生折行。
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没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2007-1-21 04:14 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
很好的Web/DOS命令提示符, 功能也不错, 让人眼前一亮~~~!
1. 不知能否加入字号选项, font可以修改字体, 个人喜欢默认字体, 但是字号太大, 整个版面可以显示的信息量有限。而4号字体字号虽然小些,却不太习惯使用这种字体。
2. 在提示符界面下浏览帖子, 如有好的内容希望复制下来, 用鼠标在提示符界面下操作,DOS提示符将失去响应。
3. 如果能在提示符下给好友发消息就更棒了。
发现命令提示符下的时间和日期为本机的而非论坛服务器的时间与日期.
命令行历史感觉不错, 可以用上下光标选择以往输入的命令, 在点像AUTOCAD提示行, 呵~
Last edited by pengfei on 2007-1-21 at 05:19 AM ]
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 ]
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2007-1-21 04:22 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
IE里可以通过“查看”里的文字大小调节字体大小
鼠标点击失去焦点后可按一下Tab键找回焦点
当然如果页面中有超链的话
会需要反复按几下Tab
-------------------------------------------
至于时间
没错,确实是本地时间
因为Date/TIMe被设计成“内部命令”
是不需要联系服务器的
想获得服务器时间
使用 net time
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
|
|
2007-1-21 05:06 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
呵~ 原来可以用IE菜单调节字体大小。 TAB键果真可以回到命令输入状态。
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.
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2007-1-21 05:13 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2007-1-20 15:22:
2. 在提示符界面下浏览帖子, 如有好的内容希望复制下来, 用鼠标在提示符界面下操作,DOS提示符将失去响应。
虽然外观是字符界面,实际上还是用图形界面模拟出来的,本质上这还是一个网页界面,把鼠标定位到命令提示符处就可以了。
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没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2007-1-21 05:18 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 30 楼』:
一个笔误
使用 LLM 解释/回答一下
命令行提示中频繁出现一个词——贴子
实际应为帖子
我们常常混用“转帖”与“转贴”二词
虽然二词同义,但不代表二字同义
因为转贴可以看作一个动词
而转帖则是一个动宾短语
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.
|
|
2007-1-21 05:34 |
|