Hi Rob,
I need to run a GW Basic program in your emulator but am having difficulty coming to grips with even the basics of the Basic language after so many years. I have the program resident in a directory I have called PCBasicFiles, on my XP laptop. Your PCBasic is installed and runs but I just cannot seem to get started to even load my GWBasic program! Can you possibly give me a few exact (i.e. I will enter exactly as you write it) command lines to A) get PCBasic to look at my C: drive, B) the command line to load the program and C) to run it!!
I have tried to 'map' my drive but always get 'syntax error', I don't really know what I'm doing anyway!
All those years ago I used to write extensive programs in basic, interpret them and later modify the Z80 code. One program printed out on 4 yards of paper! But now I'm 'all at sea'. Thanks for some starter help. Tony.
Last edit: Anthony Randall 2016-05-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A) To do this you need to mount the drive - this is not a command in PC-BASIC but in the configuration file at %AppData%\pcbasic\PCBASIC.INI (use Windows Explorer to get there - it should know where to find %AppData% if you type it in the address bar.)
Edit the PCBASIC.INI file to make it look as follows: [pcbasic]
mount=X:C:\PCBasicFiles
The command line examples given in the manual refer to commands you can type on the Windows command prompt (the DOS prompt), which is another way of doing this. They are not BASIC commands - hence the Syntax error if you type them into the PC-BASIC window.
Note that I'm using a virtual drive X: here to point to your folder C:\PCBasicFiles; you could point it at C:\ instead but it's difficult to work with filenames longer than 8 letters in BASIC, so this is easier.
B) Inside the PC-BASIC windows, type LOAD "X:PROGRAM.BAS" (Enter). You'll have to replace PROGRAM.BAS with the name of your program file.
C) Type RUN (Enter)
Let me know if this works,
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rob,
I need to run a GW Basic program in your emulator but am having difficulty coming to grips with even the basics of the Basic language after so many years. I have the program resident in a directory I have called PCBasicFiles, on my XP laptop. Your PCBasic is installed and runs but I just cannot seem to get started to even load my GWBasic program! Can you possibly give me a few exact (i.e. I will enter exactly as you write it) command lines to A) get PCBasic to look at my C: drive, B) the command line to load the program and C) to run it!!
I have tried to 'map' my drive but always get 'syntax error', I don't really know what I'm doing anyway!
All those years ago I used to write extensive programs in basic, interpret them and later modify the Z80 code. One program printed out on 4 yards of paper! But now I'm 'all at sea'. Thanks for some starter help. Tony.
Last edit: Anthony Randall 2016-05-29
Hi Anthony,
A) To do this you need to mount the drive - this is not a command in PC-BASIC but in the configuration file at
%AppData%\pcbasic\PCBASIC.INI
(use Windows Explorer to get there - it should know where to find%AppData%
if you type it in the address bar.)Edit the PCBASIC.INI file to make it look as follows:
[pcbasic]
mount=X:C:\PCBasicFiles
The command line examples given in the manual refer to commands you can type on the Windows command prompt (the DOS prompt), which is another way of doing this. They are not BASIC commands - hence the
Syntax error
if you type them into the PC-BASIC window.Note that I'm using a virtual drive
X:
here to point to your folderC:\PCBasicFiles
; you could point it atC:\
instead but it's difficult to work with filenames longer than 8 letters in BASIC, so this is easier.B) Inside the PC-BASIC windows, type
LOAD "X:PROGRAM.BAS"
(Enter). You'll have to replacePROGRAM.BAS
with the name of your program file.C) Type
RUN
(Enter)Let me know if this works,
Rob