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 06:12
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to load the SYS files I need the way CONFIG.SYS is loaded (solved) View 1,548 Replies 14
Original Poster Posted 2006-04-17 16:12 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
It can be understood as: after loading the CONFIG file once, how do I run it again?

[ Last edited by jastyg on 2006-4-25 at 09:58 ]
Floor 2 Posted 2006-04-18 21:38 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re jastyg:

I don't quite understand what you're trying to do.

If CONFIG.SYS has already been loaded, that means memory has already been configured, and no matter what method you use to run it again, all kinds of problems will appear because the memory is being configured repeatedly.

If the contents of the two CONFIG.SYS files are different, and there is no conflict in the memory configuration and loaded programs, then you should be able to put the contents of both CONFIG.SYS files into one CONFIG.SYS; if there is a conflict, you can also make a multi-boot menu to choose which one to execute.

So I want to know: for what reason do you need to run CONFIG.SYS again?
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 3 Posted 2006-04-22 19:06 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
For *.sys, how do I load it in a batch file?
Floor 4 Posted 2006-04-22 19:13 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
You can use DEVLOAD.COM
You can download this software online.
QQ:366840202
http://chenall.net
Floor 5 Posted 2006-04-22 19:17 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
How do I write it?
Floor 6 Posted 2006-04-22 19:24 ·  中国 上海 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
Your mistake: 1) config.sys is the environment configuration file defined by the system and is loaded automatically at boot, while other *.sys files have to be set up manually;
2) loading *.sys files is set in config.sys, and generally is not written into batch commands.

To load a *.sys file, you can add a few lines to config.sys:
device=\路径\*.sys
or devicehight=\路径\*.sys
(the latter means loading into upper memory (memory management must already be loaded))

For example (my own boot disk)

device=\sys\himem.sys /testmem:off
device=\sys\emm386.exe noems
devicehigh=\sys\vide-cdd.sys /d:IDE-CD
devicehigh=\sys\usbaspi.sys
devicehigh=\sys\di1000dd.sys


Notes:
1) emm386.exe can only be loaded after himem.sys has been loaded;
2) after loading those two, you can use the devicehigh command;
3) the *.sys files I want to configure are in the sys subdirectory; if yours are in the root directory, please remove \sys\.

I wonder if you can understand it when I explain it this way?

[ Last edited by xjmxjm1234 on 2006-4-22 at 19:25 ]
Diskette Operating System
Floor 7 Posted 2006-04-22 19:29 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
The problem now is that I want to load *.sys with a batch file, not in config.sys!
Floor 8 Posted 2006-04-22 19:30 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
The brother in post #4 said DEVLOAD.COM can be used. I'd like to ask how to write it in a batch file?

DEVLOAD.COM *.sys

Is that format correct?
Floor 9 Posted 2006-04-22 20:40 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
After testing, correct.
Floor 10 Posted 2006-04-24 15:04 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
The situation is like this; let me be a bit more specific.
MAX's network boot disk has a function to automatically detect the network card (AUTOLAN.DOS).
It's configured in CONFIG。SYS. I don't want it to be loaded right at boot; I want to call it only when I need it. DEVLOAD.COM AUTOLAN.DOS doesn't work, so I'm wondering whether it's possible to reload the SYS file once more (with device=AUTOLAN.DOS configured in it).
Floor 11 Posted 2006-04-24 15:39 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Please provide MAX's network boot disk
Floor 12 Posted 2006-04-24 16:39 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
Floor 13 Posted 2006-04-24 22:43 ·  中国 浙江 杭州 拱墅区 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Rename AUTOLAN.DOS to AUTOLAN.SYS, then use:
DEVLOAD.COM AUTOLAN.SYS
Give it a try!
Floor 14 Posted 2006-04-24 23:57 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Using LOADSYS is better
Floor 15 Posted 2006-04-25 09:57 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
Originally posted by martin325 at 2006-4-24 22:43:
Rename AUTOLAN.DOS to AUTOLAN.SYS, then use:
DEVLOAD.COM AUTOLAN.SYS
Give it a try!



Thanks, it's OK now
Forum Jump: