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-08-01 12:39
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Why does the error occur after compiling with bat2exe? How to modify it? View 1,979 Replies 1
Original Poster Posted 2005-03-12 00:00 ·  中国 广东 云浮 电信
初级用户
Credits 129
Posts 7
Joined 2004-09-30 00:00
21-year member
UID 31958
Gender Male
Status Offline
Why does compiling with bat2exe result in an error? How to modify it?

The following content: Why does compiling with bat2exe result in an error? How to modify it?
@echo off
tw /np
echo ==== Modify the directory for installing the Windows system =====
set path1=C:\windows
echo ===========================
:main
set mpos=
set ?=
set M=
set N=
cls
call w.bat box (+white on +blue) @setup.bat:w_main #%mpos%
set mpos=%?%
cls
if errorlevel 100 goto main
if "%?%"=="4" goto menu4
if "%?%"=="3" goto menu3
if "%?%"=="2" goto menu2
if "%?%"=="1" goto menu1

:w_main " IMGING_WIN98 Image FOR WIN XP Installer "

IMGING_WIN98 Image FOR WIN XP Installer

1. Install to: directory








:menu1
xcopy windows\*.* %path1% /Y/S
goto ocx

:menu2
set path1=
goto main

:menu3
cls
call w.bat box (+white on +blue) @setup.bat:menu33 #%mpos%
set mpos=%?%
if errorlevel 100 goto main
if "%?%"=="1" goto main

:menu33 " IMGING_WIN98 Image FOR WIN XP Installer "

IMGING_WIN98 Image A very excellent image processing tool previously.

Because there is no such program in the WINDOWS XP system, it is extracted under WIN98.

If you have any suggestions during use, please contact and inform, thank you!



:menu4
exit


cx
cd windows\system
regsvr32.exe imgadmin.ocx
goto end
:end
cls
echo.
echo.
ECHO Installation completed
echo ===========
echo If you re-enter the menu, please enter MENU and press Enter.
echo =============================
set path=%path1%
Floor 2 Posted 2005-03-12 00:00 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
BAT2EXE does not support ErrorLevel
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Forum Jump: