Announcement

Collapse
No announcement yet.

Global file names with ATTRIB command?

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

  • Global file names with ATTRIB command?

    I want to use the PB DOS ATTRIB command to change the file attributes to none (0) other than in a root directory. Is there any reason once I know that such files exist in the directory I could not use:

    ATTRIB "C:\MUNCH\*.JNK", 0

    Which would reset whatever attributes that might have been set rightly or wrongly from another program even not in any at this time use of PB DOS, say to one or more of then being defined as Read Only?

    Inquiring mind wants to know. Thanks!
    Mike Luther
    [email protected]

  • #2
    You may want to read the current value and OR the current value with 24 so that you don't effect non-file related attributes. I know it takes a little extra work, but I don't remember if PB-DOS filters this or not. Otherwise you could turn off SUBDIR flags and possibly really mess things up.
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #3
      A subdirectory is not a file. The directory attribute may not be set or removed.

      Comment

      Working...
      X