I write from Italy, so, before all, sorry for my approximate English. I have discovered PCBASIC with very great joy (years ago I wrote many programs in BASIC). My problem is very simple: how can I open a file that is, for instance, in the directory "C:\dir1\dir2" ? My OS is Windows 10 up to date. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've found a very simple way:
1) open a "prompt window", then locate on the directory wher are your files to work with
2) from the prompt window call the program pcbasic
THAT'S ALL: from now on, the "Z:" device is where you are located.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi How do you actually call pcbasic from the directory where the basic files are? What is the full command string to do this? For example my basic files are in c:\users\username\basic. I can change directory using the command prompt to get to this directory but when I type c:\program files (x86)/pc-basic/pcbasic to run pcbasic, Windows can't find it
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I installed PC-Basic on my Windows 10 computer, and instead of using the comand line to get into the program, I get into it from windows. As such, I'm not able to enter any command prompt switches. Is there a way to do the same thing from the program (such as changing the directory) without having to resort to playing with the configuration file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, unfortunately the configuration file is the only way. These should be a shortcut to it in the Start Menu, in the same folder as the PC-BASIC link.
There are of course also a set of BASIC statements to work with directories and file systems (CHDIR, MKDIR, RMDIR, FILES, etc.) so if you need to move around ditrectories they may do what you are looking for.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried the config file, but to no avail. I've done everything as the guide says, but it never seems to work. At this point I've pretty much given up on changing the directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, if you want anyone to be able to help you, it would be really useful if you tried to describe, in exact detail, what it is you're doing and what happens, rather than just saying "evertything the guide says" and "it doesn't seem to work". This works for me and other people, so something is going wrong in your particular case. If we don't know what that is, we can't help you. Unfortunately we can't read your mind.
Thanks
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rob - hope you're OK. Using the cmd prompt (admin mode), I first changed my dir to the one containing the game I wanted to run, then from that dir I ran pcbasic.exe by using the path to the dir it was installed in. PC Basic runs fine. But when I attempt to load my game, I get a Type Mismatch error. Doesn't say which line(s) are at fault. I assume it is a line in my game, right? Any advice for me please? Game has about 500 lines and it's a bit tedious to go line by line hunting.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I write from Italy, so, before all, sorry for my approximate English. I have discovered PCBASIC with very great joy (years ago I wrote many programs in BASIC). My problem is very simple: how can I open a file that is, for instance, in the directory "C:\dir1\dir2" ? My OS is Windows 10 up to date. Thanks
Hi, please see here for instructions: http://robhagemans.github.io/pcbasic/doc/#mounting
Last edit: Rob Hagemans 2017-02-12
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I've found a very simple way:
1) open a "prompt window", then locate on the directory wher are your files to work with
2) from the prompt window call the program pcbasic
THAT'S ALL: from now on, the "Z:" device is where you are located.
Thanks
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi How do you actually call pcbasic from the directory where the basic files are? What is the full command string to do this? For example my basic files are in c:\users\username\basic. I can change directory using the command prompt to get to this directory but when I type c:\program files (x86)/pc-basic/pcbasic to run pcbasic, Windows can't find it
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Rob, per my post earlier today the isntructions at http://robhagemans.github.io/pcbasic/doc/#mounting do not seem to work for me in Win 10
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi. I installed PC-Basic on my Windows 10 computer, and instead of using the comand line to get into the program, I get into it from windows. As such, I'm not able to enter any command prompt switches. Is there a way to do the same thing from the program (such as changing the directory) without having to resort to playing with the configuration file?
Hi, unfortunately the configuration file is the only way. These should be a shortcut to it in the Start Menu, in the same folder as the PC-BASIC link.
There are of course also a set of BASIC statements to work with directories and file systems (
CHDIR
,MKDIR
,RMDIR
,FILES
, etc.) so if you need to move around ditrectories they may do what you are looking for.View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I've tried the config file, but to no avail. I've done everything as the guide says, but it never seems to work. At this point I've pretty much given up on changing the directory.
Hi, if you want anyone to be able to help you, it would be really useful if you tried to describe, in exact detail, what it is you're doing and what happens, rather than just saying "evertything the guide says" and "it doesn't seem to work". This works for me and other people, so something is going wrong in your particular case. If we don't know what that is, we can't help you. Unfortunately we can't read your mind.
Thanks
Rob
Hi Rob - hope you're OK. Using the cmd prompt (admin mode), I first changed my dir to the one containing the game I wanted to run, then from that dir I ran pcbasic.exe by using the path to the dir it was installed in. PC Basic runs fine. But when I attempt to load my game, I get a Type Mismatch error. Doesn't say which line(s) are at fault. I assume it is a line in my game, right? Any advice for me please? Game has about 500 lines and it's a bit tedious to go line by line hunting.
Sorry... my mistake... I just needed to use quotes. So LOAD"GAME.BAS" instead of LOAD GAME.BAS
Thanks anyway :) :)