[net.micro] UNPRO for MSDOS BASIC

JFORREST@SIMTEL20.arpa (Jim Forrest) (05/18/86)

I have an UNPRO.COM to unprotect a basic file saved with the ,P in
the save command for CP/M. I have a friend who saved an MSDOS Basic
program that way and now cannot list the program. Do you know where I 
can get an UNPROTECT program for MSDOS Basic?
Jim

che@ptsfb.UUCP (05/27/86)

In article <944@brl-smoke.ARPA> JFORREST@SIMTEL20.arpa (Jim Forrest) writes:
>I have an UNPRO.COM to unprotect a basic file saved with the ,P in
>the save command for CP/M. I have a friend who saved an MSDOS Basic
>program that way and now cannot list the program. Do you know where I 
>can get an UNPROTECT program for MSDOS Basic?
>Jim

***********
Sorry to post this to the net but Jim didn't provide much of an
address, telephone number or whatever.... (To net users, PLEASE do give
your phone number and address in your postings...This is an ARPANET
feed, isn't it?  Don't they have phones and addresses???) Fortunately, this
might be useful to others otherwise I wouldn't have bothered responding
at all....
***********

In IBM PC-DOS, a file saved using the ,P option can be recovered by
going into BASIC/BASICA and entering:

NEW
DEF SEG
BSAVE,"UN.P",1124,1
LOAD"filename"
BLOAD,"UN.P",1124

where filename is the name of the file that was saved with the P
option.  It may work for generic MSDOS also.
-- 
Mitch Che	Pacific Bell
---------------------------------------
disclaimer, disclaimer, disclaimer, too
(415) 823-2438	uucp: {ihnp4,dual}!ptsfa!ptsfb!che

humphrie@unmvax.UUCP (stanley humphries) (05/28/86)

> In article <944@brl-smoke.ARPA> JFORREST@SIMTEL20.arpa (Jim Forrest) writes:
> >I have an UNPRO.COM to unprotect a basic file saved with the ,P in
> >the save command for CP/M. I have a friend who saved an MSDOS Basic
> >program that way and now cannot list the program. Do you know where I 
> >can get an UNPROTECT program for MSDOS Basic?
> >Jim
> 
> ***********
> Sorry to post this to the net but Jim didn't provide much of an
> address, telephone number or whatever.... (To net users, PLEASE do give
> your phone number and address in your postings...This is an ARPANET
> feed, isn't it?  Don't they have phones and addresses???) Fortunately, this
> might be useful to others otherwise I wouldn't have bothered responding
> at all....
> ***********
> 
> In IBM PC-DOS, a file saved using the ,P option can be recovered by
> going into BASIC/BASICA and entering:
> 
> NEW
> DEF SEG
> BSAVE,"UN.P",1124,1
> LOAD"filename"
> BLOAD,"UN.P",1124
> 
> where filename is the name of the file that was saved with the P
> option.  It may work for generic MSDOS also.
> -- 
> Mitch Che	Pacific Bell
> ---------------------------------------
> disclaimer, disclaimer, disclaimer, too
> (415) 823-2438	uucp: {ihnp4,dual}!ptsfa!ptsfb!che

The above program to unprotect BASIC programs will only work on an IBM PC. I had tried it on the Z-150, it did not work. One version that works is as follow:
	DEBUG
	-E100 ff,1a
	-N UNPROT.BAS
	-RCX
	2
	-W
	-Q
It also works to recover program accidentally lost by issuing a NEW command.