Menu

How use files in directory different from "Z:"?

Anonymous
2017-02-12
2018-02-04
  • Anonymous

    Anonymous - 2017-02-12

    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

     
  • Rob Hagemans

    Rob Hagemans - 2017-02-12

    Hi, please see here for instructions: http://robhagemans.github.io/pcbasic/doc/#mounting

     

    Last edit: Rob Hagemans 2017-02-12
  • Anonymous

    Anonymous - 2017-02-13

    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

     
  • Anonymous

    Anonymous - 2017-06-10

    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

     
  • Anonymous

    Anonymous - 2018-01-05

    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?

     
  • Rob Hagemans

    Rob Hagemans - 2018-01-05

    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.

     
  • Anonymous

    Anonymous - 2018-02-02

    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.

     
  • Rob Hagemans

    Rob Hagemans - 2018-02-02

    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

     
  • John Broadwater

    John Broadwater - 2018-02-04

    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.

     
  • John Broadwater

    John Broadwater - 2018-02-04

    Sorry... my mistake... I just needed to use quotes. So LOAD"GAME.BAS" instead of LOAD GAME.BAS

    Thanks anyway :) :)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.