This is a PowerShell Module for converting old tokenized .BAS files to plain text. It provides a
single cmdlet, ConvertFrom-GWBasic
, which does the work. A C# library does the heavy lifting, and
the psm1 module wraps it in a nice interface.
In other branches of this repository I have console programs to do the same thing in many languages. If you prefer, get one of those running.
It was possible to save your file encrypted in GW-BASIC, and I found the decryption algorithm in the PC-BASIC project. So, I implemented that decryption scheme... however I do not have any encrypted BAS files to test it on, so I don't know if it works.
The documentation I used for the tokenized file format was here: http://chebucto.ns.ca/~af380/GW-BASIC-tokens.html.