中国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:51
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Autoexec.bat sometimes fails to execute automatically
Printable Version  3,215 / 16
Floor1 cchessbd Posted 2006-10-11 10:53
高级用户 Posts 222 Credits 525
: :o When saying sometimes, it refers to on the computers of some motherboards.
Why is that?
Content of MSDOS.sys:
;SPDOSHDD
[Options]
AutoScan=0
DisableLog=1
SystemReg=0
Logo=0
DBLSpace=0
DRVSpace=0
DoubleBuffer=0
BootGUI=0
;BootGUI=1
;BootMulti=1
BootKeys=1
BootDelay=0

Content of Config.sys
[menu]
menuitem=GSB,GHOST Script Batch Menu
menudefault=GSB,0
menucolor=2,0
[GSB]
device=\dos\sys\himem.sys /testmem:off
;device=\dos\sys\ifshlp.sys
device=\dos\sys\emm386.exe noems
devicehigh=\dos\sys\qdboot.sys
devicehigh=\dos\sys\qdma.sys /F /L /X
devicehigh=\dos\sys\qcdrom.sys /L /UF
devicehigh=\dos\sys\qcache.sys

[COMMON]
devicehigh=\dos\sys\vide-cdd.sys /D:IDE-CD
devicehigh=\dos\sys\ramdrive.sys 16192 /E
dos=umb
files=70
buffers=30,0
stacks=9,256
lastdrive=z
shell=command.com /f

And when using the configuration files msdos.sys and config.sys for one-click GHOST to start, Autoexec.bat still cannot be executed, while the one-click GHOST can.
Could you please explain it, moderator?
Floor2 fastslz Posted 2006-10-11 11:19
铂金会员 Posts 2,315 Credits 5,493 From 上海
Because qdboot.sys, qdma.sys, qcache.sys are incompatible with some motherboards.

Compromise configuration:



Remarks: files= has no special use, 30~40 is enough. You can choose either vide-cdd.sys or qcdrom.sys. The above code has removed vide-cdd.sys.

[ Last edited by fastslz on 2006-10-11 at 11:49 ]
Floor3 cchessbd Posted 2006-10-11 12:03
高级用户 Posts 222 Credits 525
Originally posted by fastslz at 2006-10-11 11:19:
Because qdboot.sys, qdma.sys, qcache.sys are incompatible with some motherboards
Compromise configuration:
Floor4 fastslz Posted 2006-10-11 12:07
铂金会员 Posts 2,315 Credits 5,493 From 上海
I didn't say qcdrom.sys ^_^
It's qdboot.sys, qdma.sys, qcache.sys
Floor5 cchessbd Posted 2006-10-11 12:09
高级用户 Posts 222 Credits 525
Let me rephrase the problem: Autoexec.bat can be executed when some computers start up, but not on others. How to solve it?
Floor6 fastslz Posted 2006-10-11 12:13
铂金会员 Posts 2,315 Credits 5,493 From 上海
Post the Autoexec.bat again
Floor7 cchessbd Posted 2006-10-11 12:17
高级用户 Posts 222 Credits 525
@ECHO OFF
CLS
SET EXPAND=YES
SET DIRCMD=/O:N
PROMPT $p$g
SET LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
SET LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
PATH DOS;DOS\SYS;
CALL Setramd.bat %LglDrv%>NUL

:END
DOS\SPDOS.BAT

In fact, the reason there is shell=command.com /f in config.sys
is because there was an error in call Setramd.bat
But on a computer where Autoexec.bat cannot be executed (it will automatically fall back to DOS), manually entering Autoexec.bat
can run.
I have no way...
Floor8 cchessbd Posted 2006-10-11 12:18
高级用户 Posts 222 Credits 525
I modified it and need to restart for a test.
Floor9 fastslz Posted 2006-10-11 12:35
铂金会员 Posts 2,315 Credits 5,493 From 上海
1: Missing CD drive letter
2: Whether Setramd.bat is complete (findramd.exe is also necessary)
As for shell=command.com /f, the recommended parameter is shell=command.com /e:640 /p /f
@ECHO OFF
CLS
SET EXPAND=YES
SET DIRCMD=/O:N
PROMPT $p$g
SET LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
SET LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
PATH=.\DOS;.\DOS\SYS;%RAMD%:\
CALL Setramd.bat %LglDrv%
COPY COMMAND.COM %RAMD%:\ >NUL
SET COMSPEC=%RAMD%:\COMMAND.COM
SHCDX33A.COM /D:?IDE-CD /C

SHCDX33A.COM download addresshttp://johnson.tmfc.net/dos/

[ Last edited by fastslz on 2006-10-11 at 12:40 ]
Floor10 cchessbd Posted 2006-10-11 12:44
高级用户 Posts 222 Credits 525
All necessary programs include findramd, shsucdx, setramd from Jiangmin's DOS antivirus disk. It is guaranteed to be okay.

Oh, maybe you didn't understand: But on computers where Autoexec.bat cannot be executed (it will automatically return to DOS), manually entering Autoexec.bat can run and everything is normal. It just needs to be entered manually once.
Floor11 fastslz Posted 2006-10-11 13:01
铂金会员 Posts 2,315 Credits 5,493 From 上海
Oh, the autoexec.bat isn't pasted completely? Maybe it's because of the command.com /f parameter. The /f means ignoring parameters. For example, when if exist %cdrom%:\*.* ....., if there's no CD in the drive, it executes by ignoring the parameter and automatically drops to DOS. So with the /f parameter, batch processing parameters are relatively stricter, and any unstable parameter will automatically drop to DOS. To verify if this is the reason, check the difference between having no CD and having a CD in the drive.
Floor12 fastslz Posted 2006-10-11 13:06
铂金会员 Posts 2,315 Credits 5,493 From 上海
It is not excluded that you use if exist X:\*.gho and there is no X drive. You don't post the complete autoexec.bat, so it can only be guessed.
Floor13 cchessbd Posted 2006-10-11 14:21
高级用户 Posts 222 Credits 525
Thank You! Solved
Initially judged that ramdrive.sys has issues on some computers.
Because during step tracing, an error occurred when copying files, and when... retry, fail was selected and f was pressed, it returned to DOS.
Replaced with xmsdsk, hehe, solved. Thank goodness!

If you are relatively curious, you can enter my network disk to download, the "Software Release" directory has spdos0.25final.rar
http://free5.ys168.com/?nhccrgd

spdos.rar is exactly one of the problematic series versions.
Floor14 fastslz Posted 2006-10-12 11:08
铂金会员 Posts 2,315 Credits 5,493 From 上海
Hehe, a trouble caused by the /f parameter of command.com!
In addition, the way you express the virtual path \dos\ is not stable enough under pure DOS!
Floor15 fastslz Posted 2006-10-12 12:01
铂金会员 Posts 2,315 Credits 5,493 From 上海
Although I haven't tested your spdos, I found a problem with gsldr. I'm sure that if you modified that gsldr, it will most likely not boot on an NTFS formatted drive.

[ Last edited by fastslz on 2006-10-12 at 12:03 ]
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023