中国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-09-23 12:55
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » [Help] Who can explain this program? (There are Japanese)
Printable Version  10,100 / 5
Floor1 guyu Posted 2003-05-02 00:00
初级用户 Posts 5 Credits 117
1, What does %1 mean?
2, What does pause > nul mean?

@echo off
if "%1" == "" goto usage
if "%1" == "ibm5" goto mess
if "%1" == "IBM5" goto mess
if "%1" == "pc6" goto mess
if "%1" == "PC6" goto mess
if "%1" == "ms6" goto mess
if "%1" == "MS6" goto mess
goto mess
:mess
echo 誤用警告
echo 此工具會覆蓋目標磁碟上的作業系統檔案
echo 請在執行前備份相關的CONFIG.SYS和AUTOEXEC.BAT檔案
echo 此工具生成的CONFIG.SYS和AUTOEXEC.BAT檔案可能會導致非標準字體配置的系統出現問題,進而可能導致系統無法正常啟動
echo 請確保在生成配置檔案前已備份原始的CONFIG.SYS和AUTOEXEC.BAT檔案,否則可能會覆蓋原有設定
echo 請注意,生成的配置檔案可能會導致字體顯示異常(需要安裝特定字體支援)
echo 請使用以下命令格式化磁碟:
echo FORMAT A:
echo 此工具會創建必要的系統檔案,生成的系統檔案配置可能需要根據實際硬碟配置調整,請確認後再繼續操作
echo 錯誤使用方式:請使用「格式化磁碟」命令清空磁碟後再重新執行
echo 格式化磁碟後生成的系統檔案可能無法正常啟動,請謹慎操作

sys c:\ a:
if "%1" == "ibm5" goto ibm5
if "%1" == "IBM5" goto ibm5
if "%1" == "pc6" goto pc6
if "%1" == "PC6" goto pc6
rem ms6
copy config.ms6 a:config.sys /v /y > nul
copy autoexec.ms6 a:autoexec.bat /v /y > nul
goto mess1
:ibm5
copy config.pc5 a:config.sys /v > nul
copy autoexec.pc5 a:autoexec.bat /v > nul
copy c:\$jpnhn16.fnt a: /v > nul
copy c:\$jpnhn19.fnt a: /v > nul
copy c:\$jpnzn16.fnt a: /v > nul
goto mess1
:pc6
copy config.pc6 a:config.sys /v /y > nul
copy autoexec.pc6 a:autoexec.bat /v /y > nul
:mess1
echo 系統檔案生成完成
echo 請確認磁碟已格式化並正確插入後,重新啟動電腦
echo 第一次啟動可能需要調整BIOS設定以適配新的系統配置
goto end
:usage
echo 用法說明:MAKEDISK IBM5 ... IBM DOS版本J5.0/V 配置
echo 丂丂丂丂MAKEDISK PC6 ... PC DOS版本J6.x/V 配置
echo 丂丂丂丂MAKEDISK MS6 ... MS DOS版本J6.2/V 配置
echo 錯誤使用方式:請使用「格式化磁碟」命令清空磁碟後再重新執行
echo 格式化磁碟命令:
echo FORMAT A:
echo 請在格式化後再執行本工具以生成系統檔案
:end

Floor2 guyu Posted 2003-05-02 00:00
初级用户 Posts 5 Credits 117
Reply to me by email at guyu5043@163.com thanks
Floor3 Wengier Posted 2003-05-02 00:00
系统支持 Posts 10,521 Credits 27,736
This program means that according to different command - line parameters, it automatically copies the corresponding DOS (such as PC - DOS, MS - DOS) system and configuration files to the A drive to make the boot disk of the corresponding DOS. PAUSE>NUL means to press any key to continue, but no information is displayed on the screen.
Floor4 guyu Posted 2003-05-03 00:00
初级用户 Posts 5 Credits 117
What is "%1"?
What is "ibm5"?
config.pc6 config.ms6 I've never seen file extensions like this!!!!!
Floor5 如是大师 Posted 2003-05-03 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
%1 is a variable.

ibm5 is a menu item set in the config file, and it can be called anything like "Amao" or "Agou".

config.pc6 and config.ms6 are all renamed files, and they will be changed back after operation.
Floor6 diaowinner Posted 2019-05-04 19:52
初级用户 Posts 37 Credits 85 From 北海道(
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023