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-30 21:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Help: Use the doskey command to write a batch script to prohibit the use of DOS commands View 1,609 Replies 11
Original Poster Posted 2006-10-17 01:19 ·  中国 北京 联通
初级用户
Credits 88
Posts 41
Joined 2006-03-08 17:38
20-year member
UID 51603
Status Offline
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 ]
Floor 2 Posted 2006-10-17 02:40 ·  中国 北京 联通
初级用户
Credits 88
Posts 41
Joined 2006-03-08 17:38
20-year member
UID 51603
Status Offline
Dear experts, please come to help.
Floor 3 Posted 2006-10-17 03:16 ·  中国 福建 南平 电信
初级用户
Credits 34
Posts 16
Joined 2006-10-17 01:50
19-year member
UID 66016
Status Offline
The expert is sleeping. I'm a newbie, so I'll give you a bump.
Floor 4 Posted 2006-10-17 04:41 ·  中国 北京 联通
初级用户
Credits 88
Posts 41
Joined 2006-03-08 17:38
20-year member
UID 51603
Status Offline
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?
Floor 5 Posted 2006-10-17 06:37 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
What tests are carried out on the industrial computer pure DOS system of your company?
DOSKEY
知识在于不断积累
Floor 6 Posted 2006-10-17 06:58 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
@ECHO OFF
DOSKEY ML=DEL $*
DOSKEY DEL=ECHO Bad command or file name
第一高手 第二高手

Floor 7 Posted 2006-10-17 07:47 ·  中国 浙江 衢州 电信
银牌会员
★★★
Credits 1,270
Posts 548
Joined 2004-05-31 00:00
22-year member
UID 25754
Gender Male
Status Offline
Tried it, and this doskey can scare some inexperienced noobs.
Floor 8 Posted 2006-10-17 08:21 ·  中国 甘肃 平凉 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 9 Posted 2006-10-17 09:08 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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..
第一高手 第二高手

Floor 10 Posted 2006-10-17 09:56 ·  中国 四川 成都 移动
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline

──────────────── 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没商量。
考虑问题复杂化,解决问题简洁化。
Floor 11 Posted 2006-10-17 23:12 ·  中国 北京 联通
初级用户
Credits 88
Posts 41
Joined 2006-03-08 17:38
20-year member
UID 51603
Status Offline
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.
Floor 12 Posted 2006-10-17 23:46 ·  中国 山东 泰安 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
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'>"
Forum Jump: