Wow I got some great responses from that one, the best was
From: Peter McGavin <pet...@kea.am.dsir.govt.nz>
and he wrote:
---------------------------------------
There is a program in the MSDOS.BASIC directory on Simtel-20 with the following
description:
UNPBAS11.ZIP B 1628 901231 Unprotects GWBASIC/BASICA protected programs
---------------------------------------
I checked for unpbas at an archie, and FTPed from a local site.
It works great.
Thanks to all who responded!
Excuse me for a minute, I feel a FLAME coming: :-)
(It takes the United Nations to
a) Still be using GWBASIC in the 1990's
b) Actually using this awful method to protect source code
c) Actually believe that a public agency has the right to
protect source code in case "people meddle with it")
Thanks again
Nicholas Fitzpatrick
Dept. of Civil Engineering
University of Waterloo
Unless they have changed things here is a way that used to work with
GWBASIC (although it would also work on files protected under IBM BASIC.)
Create a file with debug, symdeb or your favorite binary editor consisting
of the single char 0x1a (^Z) and name it unprot.bas.
Run GWBASIC and LOAD the protected file.
LOAD unprot.bas
VIOLA! Save the file any way you want to.
--
D'Arcy J.M. Cain (darcy@druid) |
D'Arcy Cain Consulting | There's no government
Toronto, Ontario, Canada | like no government!
+1 416 424 2871 DoD#0082 |
Another cute way of doing it is to create UNPROT.SCR with
an ASCII text editor:
n unprot.bas
e 0100 ff 1a
rcx
0002
w
q
Then type DEBUG < UNPROT.SCR. This will give you a 2-byte
file called UNPROT.BAS. To unprotect a protected BASIC file, load
the protected BASIC file, then load UNPROT.BAS. You will then be
able to list the file.
Although this "2-byte" file takes up a block of disk space
(2048 bytes, 1024, or whatever), it is still the smallest answer to
the problem I've seen.
Actually my one byte version was the smallest answer however yours
was the smallest correct answer. :-) I forgot the 0xff byte in my
post. Sorry about that.
This may seem like a stupid question but I do little programming in basic
Is there any way to convert a basic program to an executable file?
thanks.
meps...@ic.sunysb.edu
Sure, Save it as ascii format and spend $69.00 on a copy of QuickBASIC 4.5.
QB45 includes a compiler to make fully standalone .EXE files and your
QBASIC program probably won't need any recoding/modification to run in QB45
or be compiled by it. You might also consider VisualBASIC if you have any
intrest in porting your code to Windows.
Keith
--
D. Keith Higgs DA...@osu.edu o //////~~
dhi...@magnus.acs.ohio-state.edu o__////_ ///////~
The Ohio State University, University Libraries <o>> _\\/////
Continuation Acquisition Division ~~\\\ \\\\\_//////
What?! My understanding is that the "RUN" command causes your ---.BAS to
be executed within QBASIC (or QuickBASIC if that's what you're using). To
actually compile you need something like in QuickBASIC where, from the
"Run" pulldown menu you select "Make .EXE file" and subsequently choose
between a standalone .EXE or one requiring the presence of the runtime library.
It is true however that QuickBASIC will read QBASIC files directly. Files from
other BASICs, including GWBASIC, which use line numbers may require some
conversion.
Actually, it's not so far from the truth to confuse QBASIC and QuickBASIC. All
Microsoft did to create QuickBASIC was to add a little insignificant bit of
code and a compiler. The guts of the system (QB45) is distributed with MS-DOS
5.0 as QBASIC (=QuickBASIC without a compiler/linker/run-time-debugger).
>This may seem like a stupid question but I do little programming in basic
>Is there any way to convert a basic program to an executable file?
Yes. Buy QuickBasic and compile it.
Or if it is a *BASIC* program, and not a QBASIC program, you can get
by with Turbo BASIC or Power Basic. (The QBASIC that comes with DOS 5
isn't compatible with TB or PB, the BASIC that came with older versions
of DOS is)
--
Leonard Erickson leo...@qiclab.scn.rain.com
CIS: [70465,203] 7046...@compuserve.com
FIDO: 1:105/56 Leonard....@f56.n105.z1.fidonet.org
(The CIS address is checked daily. The others infrequently)
Keith
Since QuickBASIC preceded QBASIC by several years, it would be much,
much more accurate to say that QBASIC is a cut-down QuickBASIC.
=Aaron=
--
Aaron Priven, aar...@ucscb.ucsc.edu or fuzz...@cats.ucsc.edu
"Men make history, but they do not do so under
conditions of their own choosing." -- Karl Marx
*Which* "qbasic" are you talking about? QuickBasic 4.5? Or the QBASIC
included with DOS 5.0 (which cannot create EXE files!)
QuickBASIC is the commercial product from Microsoft which sells for $70
on the market. QBasic is distributed with DOS 5.0 and does not include a
compiler. QuickBASIC is compatible in all respects with QBASIC, but QBASIC
is not necessarily compatible with QuickBASIC. This means programs written
in Qbasic can be used in QuickBASIC (backward compatibility) but programs
written in QuickBASIC may not necessarily run in the Qbasic environment
(what do you want for free <g>). Clear as mud?
Actually, it was the other way around. QuickBASIC pre-dated QBASIC by some
years. For DOS-5, the compiler/linker/debugger was disabled/removed.
> D. Keith Higgs DA...@osu.edu o //////~~
> dhi...@magnus.acs.ohio-state.edu o__////_ ///////~
> The Ohio State University, University Libraries <o>> _\\/////
> Continuation Acquisition Division ~~\\\ \\\\\_//////
--
John Rice K9IJ | "Did I say that ?" I must have, but It was
ri...@ttd.teradyne.com | MY opinion only, no one else's...Especially
(708)-940-9000 - (work) | Not my Employer's....
(708)-438-7011 - (home) | Purveyor of Miracles,Magic and Sleight-of-hand