中国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 10:33
47,814 topics / 349,907 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Seek help with batch command modification in MSDOS 7.1 entered by booting the OneKey Ghost 8.3 hard disk version b
Printable Version  1,652 / 3
Floor1 snowbbbb Posted 2006-09-15 04:13
初级用户 Posts 42 Credits 118
@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?
Floor2 xuantian Posted 2006-09-15 04:27
高级用户 Posts 282 Credits 587
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
Floor3 snowbbbb Posted 2006-09-15 04:33
初级用户 Posts 42 Credits 118
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?
Floor4 snowbbbb Posted 2006-09-15 04:35
初级用户 Posts 42 Credits 118
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023