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-24 16:53
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [Help] About the batch script for loading floppy disk images with Grub.exe under DOS View 2,890 Replies 3
Original Poster Posted 2005-10-11 14:25 ·  中国 安徽 淮南 电信
初级用户
Credits 50
Posts 15
Joined 2005-10-02 01:15
20-year member
UID 43053
Status Offline
I want to use batch processing under DOS to load a floppy disk image with GRUB.exe, but it never works. The readme.txt says: FILE can be the contents of a menu. Use semi-colon to delimitate the embedded commands here in FILE. The FILE can be enclosed with a pair of double-quotes. For example: GRUB --config-file="root (hd0,0);chainloader +1" But I created dos.bat with the content: GRUB --config-file="map --mem (hd0,0)/boot/dos.img (fd0);map --hook;chainloader (fd0)+1;rootnoverify (fd0);boot" It doesn't seem to work. Please give guidance.
Floor 2 Posted 2005-10-12 21:52 ·  中国 河南 南阳 联通
初级用户
★★
Credits 137
Posts 57
Joined 2005-09-29 21:23
20-year member
UID 42974
Status Offline
It seems that this command itself is not wrong. The key is that other errors may occur. You can type the commands one by one under the GRUB command line and see which command goes wrong. For example, reading the DOS.IMG file under NTFS may go wrong, which is a publicly announced BUG. You can also test commands like --config-file="help;pause Press any key to continue" and compare why others are successful while this situation you encountered fails? Also, when encountering problems, the first thing is to "save oneself", that is, try to solve it by yourself, explore from different perspectives, and if you really can't, then come to ask for help.
Floor 3 Posted 2005-10-13 19:05 ·  中国 安徽 淮南 电信
初级用户
Credits 50
Posts 15
Joined 2005-10-02 01:15
20-year member
UID 43053
Status Offline
Thanks
Floor 4 Posted 2010-09-01 18:39 ·  中国 北京 联通
初级用户
Credits 21
Posts 8
Joined 2010-08-24 12:56
15-year member
UID 172902
Gender Male
Status Offline
I also want to solve the same problem. Which expert can give an example?

Everyone help to top it!!!1

Thanks a million!!!!!!!!!!!!!!!!!!!!!!!!!!
Forum Jump: