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 12:19
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] Batch file issue: why can't it enter WINDOWS? View 1,406 Replies 12
Original Poster Posted 2006-05-22 22:39 ·  中国 河北 邯郸 联通
新手上路
Credits 12
Posts 4
Joined 2006-05-22 22:30
20-year member
UID 55818
Status Offline
I just made a batch file. Some software needs to run under DOS, the file is as follows:
@ECHO OFF
REM C:\DOS\SMARTDRV/X
PROMPT $p$g
PATH=C:\LC;C:\DOS;C:\TOOLS;C:\
SET TEMP=C:\DOS
rem C:\LC\ELODEV 2201,280,3 -C601,3489,3354,806,1,15
C:\TOOLS\FAST
C:\TOOLS\WDOSEDIT
C:
CD \LC
LOADCARD
DOSTOUCH
CD\g
TOU
ECHO ON
After exiting the program it can't enter 98, and it prompts to press any key to restart. I can guarantee there is no problem with 98 itself.
But if I unplug the hardware (the hardware used by the above program), then after exiting it can enter 98!!!
I've been looking for the problem for days and still couldn't find it, so I have no choice but to ask all you experts for help.
Thanks in advance!!!
Floor 2 Posted 2006-05-23 01:57 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re lsj5363390:

Based on the clue “But if I unplug the hardware (the hardware used by the above program), then after exiting it can enter 98!!!”, then the problem may have nothing to do with the batch file itself, but rather with hardware or drivers related to the application. If there are no objections, this thread will be moved to the “Answer Room”

[ Last edited by willsort on 2006-5-23 at 02:07 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 3 Posted 2006-05-23 01:57 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
Have you tried adding the Windows path?
Floor 4 Posted 2006-05-23 08:09 ·  中国 河北 邯郸 联通
新手上路
Credits 12
Posts 4
Joined 2006-05-22 22:30
20-year member
UID 55818
Status Offline
How do I add the WINDOWS path??
Please teach me
Floor 5 Posted 2006-05-23 12:57 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
It's possible that LOADCARD, DOSTOUCH, and TOU have stayed resident in memory and conflict with Win98, so Win98 can't start. See whether these programs have parameters for unloading from memory.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 6 Posted 2006-05-23 15:35 ·  中国 河北 邯郸 联通
新手上路
Credits 12
Posts 4
Joined 2006-05-22 22:30
20-year member
UID 55818
Status Offline
Thanks everyone, I finally found the problem. It conflicts with a piece of hardware. Can WINDOWS not have two mice? One is on the black slot, and one is built into the motherboard. If I unplug the black-slot mouse, then there's no problem!!!
Floor 7 Posted 2006-05-23 21:01 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Black slot? COM port?
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 8 Posted 2006-05-23 21:30 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
WINDOWS can have two mice, both can work at the same time
Floor 9 Posted 2006-05-24 01:24 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline

───────────────── Moderator record ─────────────────
Executed by: Will Sort
Action: Moved thread: from “DOS Batch Files & Script Technology (Batch File Room)”
Explanation: Classified according to the thread content; it is more suitable for posting in this section
Notice: The redirect link in the original section will be deleted after three days
Penalty: Since this is a forum newcomer, no credits penalty will be given. Please visit {7326}Forum Newcomer Must Read, everyone's basic code of conduct
───────────────── Moderator record ─────────────────
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 10 Posted 2006-05-24 07:51 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
If too much conventional memory is occupied before starting WIN98, the WIN command will not have enough conventional memory, and WIN98 will not be able to start. After you plug in the mouse on the black slot, type mem after startup and check the conventional memory!
Floor 11 Posted 2006-06-01 10:03 ·  中国 河北 邯郸 联通
新手上路
Credits 12
Posts 4
Joined 2006-05-22 22:30
20-year member
UID 55818
Status Offline
It's a black-slot mouse, one that supports a touch screen
Floor 12 Posted 2006-06-02 13:03 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 13 Posted 2006-06-26 17:26 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 866
Posts 415
Joined 2005-12-04 11:19
20-year member
UID 46459
Status Offline
I've never seen a mouse like the OP's,
Forum Jump: