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-08-01 01:36
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Several questions about DOS batch processing View 9,014 Replies 26
Original Poster Posted 2003-03-22 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
1. How to define the F5 key as cls and the F9 key as shutdown s
2. What do dblspace and drvspace mean in MSDOS.sys? Under what circumstances are they generally loaded or not loaded?
3. The drivers for SIS630.C-media have been loaded, but there is still no sound. I have set various parameters with setaudio for a long time, but still no sound? When playing with QV, it prompts that the sound card is not found. When playing with MPXPlayer, I only hear the first note of the song, and then it keeps repeating this note - the system freezes.
4. How to use batch processing to judge whether there is still 1M of free space on a certain disk?
5. If using batch processing to judge the memory capacity?
Floor 2 Posted 2003-03-22 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
1: Can be defined with ANSI;
2: DBLSPACE/DRVSPACE are disk compression tools. As long as there are no compressed disks with them, there is no need to load them;
3: Is the BLASTER variable set correctly?
4: The disk capacity can be obtained using the DFREE parameter of the ASET command;
5: The memory capacity can be obtained using the XMSTOTAL parameter of STRINGS.
Wengier - 新DOS时代

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

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

Floor 3 Posted 2003-03-23 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
1. How to specifically define with ANSI, please give a typical example. For example, set F5 as cls, and the others will naturally be mastered.
2. I'm not what kind of expert, still hope Wengier to talk about the BLASTER variable setting in detail?
3. aset, strings are not basic commands? Still please Wengier to talk about in detail?

Also mention a few more questions:

1. The download address of makecab for msdos7.1?
2. When in DOS such as c:
Typing cd d:\mysoft doesn't enter d:\mysoft, must first type d:, then type cd mysoft to really enter. Is there an enhanced program for the CD command that can overcome this trouble?
3. What is ifshlp in memory?
4. The following is a batch program
@echo off
XX
d:
cd d:\mysoft
wps
xx

Currently in c:\dos, how to set the variable "XX" so that after exiting WPS, it returns to c:\dos?
Floor 4 Posted 2003-03-23 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
baslinux, unable to download wcd?
Floor 5 Posted 2003-03-23 00:00 ·  中国 吉林 吉林市 中移铁通
银牌会员
★★★
想當一人之下萬人之上
Credits 1,275
Posts 393
Joined 2003-01-10 00:00
23-year member
UID 717
Gender Male
Status Offline
I don't know if doskey will work.
<- 刷新一下换个MM
叫我Jorkin或小p就行,别再叫playboy2925了,跟提犯人似的。
如果认为小弟发的logo不错的话,给朵鲜花我就知道了。:)
Floor 6 Posted 2003-03-24 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
My these questions have been posted for two days!!! Please all the experts give me some guidance!

My several new questions:

doskey? Can you tell me how it is implemented?

1. How to start the computer without using the keyboard?
2. What compression program can compress the next - level directory? What decompression program can unzip the next - level directory? It's good when using copy with a /s added
Floor 7 Posted 2003-03-24 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
The following is the speech of Hero Not Colored on 2003-3-23 11:32:47:
2. When in DOS like c:
After typing in cd d:\mysoft, it doesn't enter d:\mysoft. You must first type in d: and then type in cd mysoft to really enter. Is there any enhanced program for the CD command that can overcome this trouble?
3. What is ifshlp in memory?
4. The following is a batch processing program
@echo off
XX
d:
cd d:\mysoft
wps
xx

Currently in c:\dos, how to set the variable "XX" so that after exiting WPS, it returns to c:\dos?



There was a DOS software that could realize this function before, but I forgot the name. I need to look for it. I don't know if it still exists.
Floor 8 Posted 2003-03-24 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
The following is a quote from Hero Not Colored on 2003-3-24 8:27:13:
doskey? Can you tell me how to implement it?

1.How to start the computer without a keyboard?
2.What compression program can compress the next level directory? What decompression program can decompress the next level directory? It's better to add a /s when using copy


Doskey cannot be implemented.

1. What does "How to start the computer without a keyboard?" refer to?
2. Basically, compression software supports subdirectory compression and decompression, such as: PKZUP, PKUNZIP, RAR, ARJ... ...
Floor 9 Posted 2003-03-24 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
Not using the keyboard means booting the microcomputer without a keyboard.

I might not be clear about the parameter settings. Generally, I use it like this: arj a c:\abc.arj, rar e c:\abc.rar c:\abc. But neither compresses nor decompresses subdirectories. What other parameters need to be added?

Unresolved issues:
1. Specifically, how to define function keys with ansi? (Give an example, so even if I'm very green, I can draw the scoop.)
2. The problem of the CMI sound card, I hope Wengier can talk in detail about the BLASTER variable setting? (In fact, I don't understand what BLASTER IO interrupt is, but I very much hope that my SIS630 integrated sound card can make sound in real DOS mode. The driver has been loaded. When playing with MPXPLAYER, only the first sound comes out, and then it keeps repeating this sound, and then it freezes. When playing with QV, it shows that the sound card is not found. When playing mid with mpegmid, everything is normal, and the graphic of high and low sounds rises and falls, but there is no sound.)
3. Everyone knows that in batch processing, there is such a usage:
if exist c:\abc.txt goto 1
if exist d:\123.txt goto 2
I hope there is a program added to batch processing that can realize the following function:
if mem = 32M goto 1
if mem = 64M goto 2
It would be better if it can be realized only with SET=. If you are an expert, just compile a batch and upload it?
4. Seek download of MAKECAB for msdos7.1 (the makecab under xp cannot run under 98)
5. What is ifshlp in memory?
6. Is there an enhanced program for CD that can realize direct switching of various disk directories. (Currently in c:\, typing cd d:\mysoft does not enter d:\mysoft, must first type d:, then type cd mysoft to really enter. Is there an enhanced program for the CD command that can overcome this trouble?)
7. The following is a batch program
@echo off
XX
d:
cd d:\mysoft
wps
xx

Currently in c:\dos, how to set the variable "XX" so that after exiting wps, it returns to c:\dos?

8. Seek download of wolf3D (a DOS game about warriors entering the enemy's stronghold for shooting. This is an old DOS shooting game that I have played many times, and it is also 3D)
Floor 10 Posted 2003-03-24 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Regarding the issue of directly entering D:\MYSOFT, you can do it with commands like CDD or MCD. My MS-DOS 7.10 boot disk has the MCD command.

IFSHLP is a file system assistance program for Windows startup. It is generally not used under DOS, unless for software like MSCLIENT.

MAKECAB is not easy to use. CABARC is much better and also runs in the DOS window.

The key to setting sound card variables is the various parameters of the sound card. For details, please refer to the "DOS Usage" section of the website. However, those parameters of PCI sound cards are all virtual.

To obtain the memory capacity, try the STRINGS XMSTOTAL command. For example, STRINGS MEM=XMSTOTAL can set the memory capacity into the environment variable MEM.

To go back to the original folder, use BATCHMAN. For example, BATCHMAN PUSHPATH and BATCHMAN POPPATH
Wengier - 新DOS时代

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

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

Floor 11 Posted 2003-03-25 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
1. Is there a download of CABARC on the website? I've been looking for a long time and can't find it.

2. There are also several questions for you all to take a look at.

How to boot the microcomputer without a keyboard (without a keyboard means starting the microcomputer without a keyboard)

How to compress the next - level directory with arj, rar, pkzip, etc. (I'm not very clear about the parameter settings. Generally, I use arj a c:\abc.arj rar e c:\abc.rar c:\abc, but neither compresses nor decompresses sub - directories. What other parameters need to be added?)

3. How to specifically define function keys with ansi? (Give an example, so even if I'm very green, I can also draw the ladle.)
Floor 12 Posted 2003-03-25 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
CABARC cannot run in pure DOS but only in the DOS window, so it's not available for download on the website, but you can download it here:
http://ftp.intron.ac/pub/security/cabsign/CABARC.EXE

You can start the computer using the "Power" key on the computer without using the keyboard.

For compressing the contents of subfolders with ARJ, RAR, PKZIP, etc., you can add the -R parameter. When extracting, for ARJ and RAR, you can use the X command, and for PKUNZIP, add the -D parameter.
Wengier - 新DOS时代

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

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

Floor 13 Posted 2003-03-26 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
Then, under pure DOS, what software can be used to compress into CAB? You said makecab is quite complicated, but when I run makecab /? in the CMD under XP, there are only a few parameters in the prompt. If it's convenient, please let the webmaster upload makecab.

"Without using the keyboard" means starting the microcomputer without a keyboard. In the absence of a keyboard, the system prompts that the keyboard is not found and then stops the boot. You can try unplugging the cable between the keyboard and the host, and it's like that.

I have a machine from five years ago, which is an Asus motherboard, and it doesn't have a PS2 port, only a dedicated keyboard interface. And that keyboard is no longer usable. I've searched second-hand markets everywhere and can't find that dedicated interface keyboard. I have to ask for help from all the experts.
Floor 14 Posted 2003-03-26 00:00 ·  中国 浙江 宁波 电信
中级用户
Credits 221
Posts 33
Joined 2003-03-22 00:00
23-year member
UID 1218
Gender Male
Status Offline
Please provide a download for makeCAB if convenient.

Phenomenon:
The system detects no keyboard when booting and then stops the bootstrap.

Not using a keyboard means booting the microcomputer without a keyboard. I have an old machine from five years ago, it's an Asus motherboard, no PS/2 port, only a dedicated keyboard interface. And that keyboard is no longer usable. I searched the second-hand market for a whole day and didn't find this type of interface keyboard. So I can only ask for help from everyone.
Floor 15 Posted 2003-03-27 00:00 ·  中国 山东 烟台 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
To Hero Not Color:

Regarding the first question, the keyboard redefinition function of ANSI can be used to achieve it. Specifically, there are two ways to implement it:

1. echo (esc)




















[ Last edited by willsort on 2005-10-13 at 12:01 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Forum Jump: