Menu

Strugglig to find where the programs are saved when using the Save Function

Anonymous
2015-04-03
2015-04-04
  • Anonymous

    Anonymous - 2015-04-03

    Hello all,

    I probably have missed something glaringly obvious, but I cannot seem to locate where saved programs are stored. A search of the computer seems to turn up nothing even jut using the .bas file extension, but PC-Basic opens them fine with the load function. What do I not know?

    I am also struggling with changing the active directory using the instructions provided in the documents, I have entered "mount=C:\Users\Me\BASIC Code (a folder I created for this process)" into the config file under several of the headings and none seem to work. I seem to be missing something here as well.

    Thanks for any info,

    Jeremy

     
  • Rob Hagemans

    Rob Hagemans - 2015-04-03

    Hi Jeremy, it's a good question because it's actually a bit mysterious. On Windows (which I assume you use) the files appear to be saved in C:\Users\Me\AppData\Local\VirtualStore\Program Files\PC-BASIC (where Me is replaced by your username). It's a bug, in fact - by default PC-BASIC tries to save to the C:\Program Files\PC-BASIC folder, which is not writeable and not a good place anyway. I'll see what I can do about it.

    To mount your drive, be sure to follow this precise format:
    mount=Z:C:\Users\Me\BASIC Code. Note the Z: in front, which tells PC-BASIC to mount this location to its internal Z: drive letter, which is the active drive. The internal drive letters are different from the Windows drives. You can also mount to other internal drive letters, such as C:, with mount=C:C:\Users\Me\BASIC Code . The Z: drive remains the current drive, however. Again, I'm assuming you replace Me with your username.

    Hope this helps,

    Rob

     
  • Anonymous

    Anonymous - 2015-04-03

    Perfect Thank you very much.

    Oddly enough I do not seem to have an AppData file location but it is not yet critical, I just suspect it will be in the future

    Does mounting the new drive Change the Save Location to that place as well or does that stay in the mystery folder?

    thanks so much for your rapid response.

     
  • Rob Hagemans

    Rob Hagemans - 2015-04-03

    The location is for Windows 7, so if you're using a different version YMMV. In some versions of Windows it's called Application Data, I think, though I thought that was XP which shouldn't have this issue in the first place.

    If you mount a drive to Z: this will change the default save location. If you mount to another drive letter, or if you mount multiple drive letters, you can save to those drives with e.g. SAVE "C:MYPROG.BAS". You can see the contents of the current directory of those drives with e.g. FILES "C:", but you may already know this.

    I found the cause of the bug, so next version will by default save in your home directory, as it should.

     
  • Rob Hagemans

    Rob Hagemans - 2015-04-04

    The issue is fixed in 15.03.2. Take your files out of the mystery location before installing the new version, or it will be hard to find them back!

    If you have files to move, you could run with mount=C:C:\Users\Me\BASIC Code and then move files with LOAD "MYPROG":SAVE "C:MYPROG"

    Rob

     
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.