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 16:34
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Seek help with batch command modification in MSDOS 7.1 entered by booting the OneKey Ghost 8.3 hard disk version b View 1,603 Replies 3
Original Poster Posted 2006-09-15 04:13 ·  中国 河南 信阳 电信
初级用户
Credits 118
Posts 42
Joined 2006-09-14 21:58
19-year member
UID 62590
Status Offline
@echo off
cls
cd\
C:
attrib -r -h boot.ini
del boot.ini
copy e:\kj\dos\xp.ini c:\
ren xp.ini boot.ini
attrib +r +h boot.ini
cls

Expert guidance, is this correct? Why is it not working and the original file is not replaced?

Additionally, when the expert helps with modification, can we make one that automatically finds the CD-ROM? For example, if the CD-ROM is drive G and these files are in G:\kj\dos\, and if it's drive H, can we make a batch that automatically finds the CD-ROM's kj\dos\xp.ini file and helps replace the C:\boot.ini file? Can such a batch be made in WINDOWS to perform this replacement?
Floor 2 Posted 2006-09-15 04:27 ·  中国 四川 绵阳 电信
高级用户
★★
Credits 587
Posts 282
Joined 2006-04-10 03:40
20-year member
UID 53599
Gender Male
Status Offline
Only one command
@echo off
xcopy /y e:\kj\dos\xp.ini c:\boot.ini

For the CD drive, in autoexec.bat, use /l to specify the drive letter; for example:
lh mscdex /d:cd-rom /l:x //Assign the CD drive letter as x
Floor 3 Posted 2006-09-15 04:33 ·  中国 河南 信阳 电信
初级用户
Credits 118
Posts 42
Joined 2006-09-14 21:58
19-year member
UID 62590
Status Offline
Brother, I'm not too familiar with MSDOS.
Is xcopy an internal command?
You're talking about this under DOS, right?
Can it be done under Windows?
I want to make a tool disk, put this batch in it. When burning, do I need to burn the xcopy command?
Is it enough to burn this command in the CD?
The file name is xp.bat
The content is

@echo off
xcopy /y x:\kj\dos\xp.ini c:\boot.ini

Can this copy xp.ini to boot.ini?

Then there's no need to add ren xp.ini boot.ini? How to boot?
Floor 4 Posted 2006-09-15 04:35 ·  中国 河南 信阳 电信
初级用户
Credits 118
Posts 42
Joined 2006-09-14 21:58
19-year member
UID 62590
Status Offline
I'm a computer company person. Sometimes I need to modify the boot.ini of different machines. Is it right that
@echo off
xcopy /y x:\kj\dos\xp.ini c:\boot.ini
can achieve my ideal? If making an autoexec.bat is not enough to be automated
Forum Jump: