home *** CD-ROM | disk | FTP | other *** search
- $lines
- print chr(26)
- text 0,$
- SWAPCHG: To Change Size of Perfect Writer Swap File
-
-
- By Chip Weems (KUG bulletin board 5/21/83)
- Enhanced by Don Davis 4/10/84
-
-
- Run SWAPCHG from drive A. Then put a PW.SWP (any size)
- in drive A and a diskette with adequate space in drive B.
-
- $
- var num,I,J = integer
- var abyte,fsize = char
- files S(1),S(1)
- input3 "Hit any key when ready";abyte
- rename "B:PW.SWP" to "B:PWSWP.OLD"
- create "B:PW.SWP"
- open #1; "A:PW.SWP"
- open #0; "B:PW.SWP"
- input "
- What size PW.SWP do you want (must be a multiple of 8)";num
- print
- let fsize = chr(num)
- for I = 0H to 7BH
- read #1;abyte
- write #0;abyte
- next I
- read #1;abyte
- write #0;fsize
- for I = 7DH to 3FFH
- read #1;abyte
- write #0;abyte
- next I
- let abyte = chr(0)
- for I = 1 to fsize
- for J = 0H to 3FFH
- write #0;abyte
- next J
- print I;"k";chr(0DH);
- next I
- close #0
- close #1
- print
- print "Done"
- End
- ì