|
benteng302
初级用户
 
积分 88
发帖 41
注册 2006-3-8
状态 离线
|
『楼 主』:
求助:使用doskey命令写入批处理禁止使用dos命令
使用 LLM 解释/回答一下
我们公司的电脑是工业电脑纯dos系统,用来测试产品的。生产线上的员工经常拿他试手,
你刚修好一段时间就又有人改动了。我想用doskey做个批处理文件让它一启动就自动运行,把经常用的
dos命令禁止(毕竟线上的工人了解不是很多)。可是如何编写呢,大侠帮忙。哦,对了
dos我用的是7.1版本。
Last edited by benteng302 on 2006-10-17 at 23:10 ]
Our company computers are industrial computers with a pure DOS system, used for testing products. Production line workers often use it to practice, and it gets modified again soon after you just fixed it. I want to use doskey to make a batch file that automatically runs when it starts up to prohibit frequently used DOS commands (after all, the workers on the line don't know much). But how to write it? Could you help, expert? Oh, right, I'm using DOS version 7.1.
Last edited by benteng302 on 2006-10-17 at 23:10 ]
|
|
2006-10-17 01:19 |
|
|
benteng302
初级用户
 
积分 88
发帖 41
注册 2006-3-8
状态 离线
|
|
2006-10-17 02:40 |
|
|
wodj
初级用户
 
积分 34
发帖 16
注册 2006-10-17
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
大侠睡觉了,我是菜鸟,帮你顶一下
The expert is sleeping. I'm a newbie, so I'll give you a bump.
|
|
2006-10-17 03:16 |
|
|
benteng302
初级用户
 
积分 88
发帖 41
注册 2006-3-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by wodj at 2006-10-17 03:16:
大侠睡觉了,我是菜鸟,帮你顶一下
谢谢,怎么写呢?
Originally posted by wodj at 2006-10-17 03:16:
Master is sleeping, I'm a newbie, bumping for you
Thank you, how to write it?
|
|
2006-10-17 04:41 |
|
|
piziliu2004
中级用户
   过度热情
积分 321
发帖 139
注册 2006-3-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
你们公司的工业电脑纯dos系统是做什么测试的?
DOSKEY
What tests are carried out on the industrial computer pure DOS system of your company?
DOSKEY
|

知识在于不断积累 |
|
2006-10-17 06:37 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
@ECHO OFF
DOSKEY ML=DEL $*
DOSKEY DEL=ECHO Bad command or file name
@ECHO OFF
DOSKEY ML=DEL $*
DOSKEY DEL=ECHO Bad command or file name
|

第一高手 第二高手
我的小站
 |
|
2006-10-17 06:58 |
|
|
weilong888
银牌会员
    
积分 1270
发帖 548
注册 2004-5-31
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
试了一下,这doskey是可以吓一吓不懂的菜鸟。
Tried it, and this doskey can scare some inexperienced noobs.
|
|
2006-10-17 07:47 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2006-10-17 08:21 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
改名字,不能改内部命令
再来一个让CD...参数可用(返回上一级目录的上一级目录)
DOSKEY CD...=CD.. $T CD..
Change the name, but internal commands cannot be changed.
Another one to make the CD... parameter usable (return to the upper level directory of the upper level directory)
DOSKEY CD...=CD.. $T CD..
|

第一高手 第二高手
我的小站
 |
|
2006-10-17 09:08 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
──────────────── 版务记录 ────────────────
执行:namejm
原标题:求助:关于doskey写入批处理
说明:因标题过于模糊,不便于论坛的搜索和管理,请在三日内修改标题。
提示:修改标题请在当前帖的右下脚点 编辑, 修改完毕之后按 编辑帖子 即可。
处罚:因属论坛新人,暂时不予处罚;若三日之后尚未修改标题,将扣除4点积分,
以示惩罚,并由版主强制修改标题。请点击这里阅读论坛发帖规定,以避免在
今后的讨论中违规发帖。
──────────────── 版务记录 ────────────────
──────────────── Moderation Record ────────────────
Performed by: namejm
Original Title: Help: About doskey Writing to Batch File
Description: The title is too vague, which is not convenient for forum search and management. Please modify the title within three days.
Prompt: To modify the title, click Edit at the bottom right of the current post, and then click Edit Post after modification.
Punishment: Since it is a new forum user, no punishment is temporarily given; if the title is not modified after three days, 4 points will be deducted as a punishment, and the moderator will forcefully modify the title. Please click here to read the forum posting regulations to avoid posting violations in future discussions.
──────────────── Moderation Record ────────────────
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-10-17 09:56 |
|
|
benteng302
初级用户
 
积分 88
发帖 41
注册 2006-3-8
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2006-10-17 09:56:
──────────────── 版务记录 ────────────────
执行:namejm
原标题:求助:关于doskey写入批处理
...
版主俺修改了标题,这下应该不会扣俺分了吧。
Originally posted by namejm at 2006-10-17 09:56:
──────────────── Moderation Log ────────────────
Performed by: namejm
Original title: Help: About doskey writing to batch
...
Moderator, I modified the title, so I shouldn't lose points now, right.
|
|
2006-10-17 23:12 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
改了没用的。只是欺骗
It doesn't work after modification. It's just deception.
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-17 23:46 |
|