Announcement

Collapse
No announcement yet.

Folder is Read Only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Folder is Read Only

    Tried to compile a snippet and got the above error. "Unable to compile (file.pbp). The source directory is read only"
    What to do?

  • #2
    Not enough to go on. Could you post your code? At least can you post more of the complaint?
    We can crack this cotton PIC'n thang!

    Comment


    • #3
      I'm pretty sure it hasn't to do with the code per se but more that I copied and pasted part of the code from another, past program.

      Code:
      '****************************************************************
      '* Name : UNTITLED.BAS *
      '* Author : [select VIEW...EDITOR OPTIONS] *
      '* Notice : Copyright (c) 2021 [select VIEW...EDITOR OPTIONS] *
      '* : All Rights Reserved *
      '* Date : 12/17/2021 *
      '* Version : 1.0 *
      '* Notes : *
      '* : *
      '****************************************************************
      PAUSE 10
      DEFINE DEBUG_REG PORTC
      DEFINE DEBUG_BIT 6
      DEFINE DEBUG_BAUD 9600
      DEFINE DEBUG_MODE 0
      DEFINE DEBUG_PACING 1000
      TRISA=41
      TRISC=18
      ANSELA=0 'turn off A/D
      ANSELC=0
      CM1CON0=0 'turn off comparators
      CM1CON1=0
      CM2CON0=0
      CM2CON1=0
      OSCCON=%01101010
      DEFINE OSC 4
      PAUSE 10
      
      low portc.5
      debug $FE, $58
      'tempx con $03
      x var WORD
      'y var word
      'Pause 125
      'low porta.4
      'DEBUG "PENDULUM"
      'pause 2500
      'debug $FE, $58
      'pause 500
      i2cwrite porta.5,porta.4,$00,$06
      pause 10
      i2cwrite porta.5,porta.4,$80,$00
      pause 10
      Pendulum:debug $FE, $58
      pause 10
      I2Cread porta.5,porta.4,$80,[x.highbyte,x.lowbyte]
      pause 10
      'x = x >> 2
      'i2cwrite porta.0,porta.1,$00,$06
      'pause10
      'i2cwrite porta.0,porta.1,$80,$00
      'pause 10
      'i2cread porta.0,porta.1,$80,[y.highbyte,y.lowbyte]
      'x=x>>1
      'debug dec x.highbyte
      debug dec x.lowbyte 'displayed as decimal
      pause 25
      'debug $FE, $C0
      'i2cwrite porta.0,porta.1,$01,$06
      'pause 10
      'i2cwrite porta.0,porta.1,$80,$00
      'pause 10
      'I2Cread porta.0,porta.1,$80,[x.highbyte,x.lowbyte]
      'pause 10
      'debug dec x.highbyte
      'pause 25
      'if x.lowbyte=255 then goto Pendulum
      'if x.lowbyte>=145 then goto card
      'if x.lowbyte<65 then goto Pendulum
      goto Pendulum
      'debug $FE, $58
      'y=y>>5
      'x=x/y
      'debug dec x.lowByte 'displayed as decimal
      'pause 10
      'debug dec x.lowbyte 'displayed as decimal
      'if x<5000 then goto card
      'goto Pendulum
      'card: pulsout porta.4,250
      'debug dec x.highbyte
      'pause 1000
      'low porta.4
      'debug $FE, $58
      'pause 10
      'goto pendulum

      Comment


      • #4
        Sounds familiar. I did a quick search, but couldn't find anything. If I recall correctly, someone else got the same Error and it had to do with them updating their computer, or switching computers, or something like that. If you created the PBP file and put it in one folder, but later moved it, that could be the issue. Any changes to the file pathways used by PBP will probably give you this Error. PBP installs .inc files and such in the C:// section of the computer. However, your stuff goes where you put it. Don't know enough to do more than guess.
        We can crack this cotton PIC'n thang!

        Comment


        • #5
          I did move it. I'll try putting into the folder Micro Code normally stores files

          Comment


          • #6
            I put it in the PBP folder and it compiled. Still don't get why it did that though.

            Comment


            • #7
              I've had this problem when the file was stored in a folder that was synchronized with Google Drive.
              Charles Leo
              ME Labs, Inc.
              http://melabs.com

              Comment


              • #8
                I got the same problem thank you to who share the information it will help me a lot

                prepaidgiftbalance
                Last edited by Stanley; 12-26-2021, 08:32 PM.

                Comment


                • #9
                  just save your .pbp file to a writable folder !!!

                  C:\Users\Keith\Documents\ Progs i.e. ( NOT My Documents !!! ) "Documents" is a file I created for such a purpose ...

                  other way is to modify your folder properties ...

                  could you show here this file location folder you intend to use ???

                  Alain

                  Comment


                  • #10
                    I know this is an old post but I just upgraded one of my systems and PBP stopped working. I kept getting a "Folder is read-only" error. After seeing these posts and looking online the problem is caused by Microsoft now marking every folder as read-only, even if the files in it are not marked that way. You cannot change the folder permissions and what you see is a small solid black box in Read Only. This is a status not the control of the folder. Like Keith55555 said, if you put your files in the same folder as PBP, they will work. I'll try to see what can be done to remove the Read Only assignment in Windows.

                    Comment

                    Working...
                    X