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 06:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to compile a BASIC program into an .exe file View 2,631 Replies 15
Floor 16 Posted 2004-02-11 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
The following is a quote from 阿海 at 2003-7-30 22:59:17:
How to compile a BASIC program into an .exe file
   I want to learn


The batch file I wrote:
@echo off
if "%1" == "" goto help
if exist %1.exe del %1.exe
if not exist %1.bas goto nofile
c:\bc7\binb\bc /A /E /X /V /W %1.bas,%1.obj,nul.lst/D/Es/O/Ot/FBx/S/Lr/Zi/FPi/T/Z/C:1024/Ah
c:\BC7\BINb\link /exepack /L %1.obj,%1.EXE,NUL.MAP,c:\BC7\LIB\BCL71ENR.LIB+C:\BC7\LIB\QBX.LIB,NUL.DEF
if exist %1.obj del %1.obj
if exist %1.map del %1.map
if exist %1.sbr del %1.sbr
dir %1.*
if "%2" == "" goto end
if exist %1.exe %1.exe
goto end

:nofile
echo.
echo.
echo Sorry, Input file not found !
echo.
echo.
goto end

:help
echo.
echo Microsoft (R) QuickBASIC Extended Compiler Version 7.10
echo Copyright (C) Microsoft Corporation 1982-2004. All rights reserved.
echo.
echo Usage:
echo BC7 { BASIC Program source Filename } { Run code }
echo.

:end
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Forum Jump: