中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 12:52
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS批处理 & 脚本技术(批处理室) » Help: Use the doskey command to write a batch script to prohibit the use of DOS commands
Printable Version  1,697 / 11
Floor1 benteng302 Posted 2006-10-17 01:19
初级用户 Posts 41 Credits 88
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 ]
Floor2 benteng302 Posted 2006-10-17 02:40
初级用户 Posts 41 Credits 88
Dear experts, please come to help.
Floor3 wodj Posted 2006-10-17 03:16
初级用户 Posts 16 Credits 34
The expert is sleeping. I'm a newbie, so I'll give you a bump.
Floor4 benteng302 Posted 2006-10-17 04:41
初级用户 Posts 41 Credits 88
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?
Floor5 piziliu2004 Posted 2006-10-17 06:37
中级用户 Posts 139 Credits 321
What tests are carried out on the industrial computer pure DOS system of your company?
DOSKEY
Floor6 fastslz Posted 2006-10-17 06:58
铂金会员 Posts 2,315 Credits 5,493 From 上海
@ECHO OFF
DOSKEY ML=DEL $*
DOSKEY DEL=ECHO Bad command or file name
Floor7 weilong888 Posted 2006-10-17 07:47
银牌会员 Posts 548 Credits 1,270
Tried it, and this doskey can scare some inexperienced noobs.
Floor8 vkill Posted 2006-10-17 08:21
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Floor9 fastslz Posted 2006-10-17 09:08
铂金会员 Posts 2,315 Credits 5,493 From 上海
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..
Floor10 namejm Posted 2006-10-17 09:56
荣誉版主 Posts 1,737 Credits 5,226 From 成都

──────────────── 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 ────────────────
Floor11 benteng302 Posted 2006-10-17 23:12
初级用户 Posts 41 Credits 88
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.
Floor12 electronixtar Posted 2006-10-17 23:46
铂金会员 Posts 2,672 Credits 7,493
It doesn't work after modification. It's just deception.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023