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-26 01:30
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Urgent] How to write a batch file for "Refresh Restore Wizard"! View 801 Replies 3
Original Poster Posted 2003-06-11 00:00 ·  中国 江苏 扬州 高邮市 电信
银牌会员
★★
三生缘里笑红尘
Credits 1,063
Posts 292
Joined 2003-03-09 00:00
23-year member
UID 1073
Gender Male
Status Offline
My batch file doesn't work; it can't be called out from virtual memory (it just jumps out)!!! Do I need to modify CONFIG.SYS?????
===================================================
(1)
@ECHO OFF
tw /np >nul
cls
echo.
echo Important note: this operation can only be used with "AWARD" BIOS, and there must be more than 40K available capacity!!
echo.
echo The "Restore Wizard" module is about to be transplanted into the BIOS. This operation involves some risk, so please be cautious!
echo.
echo To confirm execution, press " Y "; to cancel, press " N "
set get=
get c " Continue? : " yn
if "%get%" == "Y" goto _y
if "%get%" == "N" goto _n
goto _end
:_y
set temp=%RAMD%:\
set tmp=%RAMD%:\
XXCOPY /E /H /Z /YY %CDROM%:\BOOT\stdp %RAMD%:\TEMP > NUL
%RAMD%:
CD \TEMP
stdp.bat
set temp=C:\
set tmp=C:\
:_n
MENU

:_end
MENU

(2)
awd temp temp.bin /pn /sy >nul
if not exist temp.bin goto end
cbrom temp.bin /isa stdp.dat
awd temp.bin /py /sn /r >nul

:end
cls
echo.
echo BIOS FLASH FAIL !!!!!
echo Press any key !!!!!!!
echo.
tw /u >nul
PAUSE > NUL
menu
====================================================

Explanation: (2) is the "stdp.bat" in (1)




Floor 2 Posted 2003-06-11 00:00 ·  中国 江苏 扬州 电信
银牌会员
★★
三生缘里笑红尘
Credits 1,063
Posts 292
Joined 2003-03-09 00:00
23-year member
UID 1073
Gender Male
Status Offline
Isn't anyone answering???
Floor 3 Posted 2003-06-23 00:00 ·  中国 山东 济南 广电网
中级用户
★★
Credits 364
Posts 95
Joined 2003-06-15 00:00
23-year member
UID 5250
Gender Male
Status Offline
Sorry, my skill level is limited. I can only see that one line has a problem:
%RAMD%:
CD \TEMP
stdp.bat /*CALL STDP.BAT should be used here*/
set temp=C:\
set tmp=C:\
Floor 4 Posted 2003-06-24 00:00 ·  中国 安徽 合肥 电信
银牌会员
★★
三生缘里笑红尘
Credits 1,063
Posts 292
Joined 2003-03-09 00:00
23-year member
UID 1073
Gender Male
Status Offline
Thanks!!! I'll try it first!!!
Forum Jump: