Announcement

Collapse
No announcement yet.

Change Read Only Files

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

  • Change Read Only Files

    Let's say that c:\junk contains multiple files that are 'read only'
    I am changing that attribute one file at a time using a looping
    structure/DIR$/ATTRIB. Works just fine, but it's not to my liking.

    How do I turn the 'read only' attibute to off in c:\junk using a
    single statement?

    Suggestions and/or push in the right direction is requested.

    Thanks, Jack



    ------------------

  • #2
    Well, it's been a while since I used PB/DOS and the help file
    doesn't specifically state this but have you tried using wild
    cards?
    ------------------
    Did some testing. Apparently not. Please disregard. Oh well.
    ------------------
    Further testing:
    Shelling out to DOS does.

    SHELL "ATTRIB -R C:\PBDOS\*.EXE"



    [This message has been edited by Mel Bishop (edited March 29, 2007).]
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3

      Oops, already answered while I checked!

      regards, Ian

      ------------------
      IRC

      [This message has been edited by Ian Cairns (edited March 29, 2007).]
      :) IRC :)

      Comment


      • #4
        Thanks, works just great.
        I should have thought of that, but I didn't.

        Long live PB Forum

        Jack


        ------------------

        Comment


        • #5
          Rats, got to this one too late. Good answer Mel.

          Here is a link to a great site for DOS commands you can SHELL to:

          www.easydos.com

          Pete

          ------------------


          [This message has been edited by Pete Mantle (edited April 03, 2007).]

          Comment

          Working...
          X