Announcement

Collapse
No announcement yet.

Global file names with ATTRIB command?

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

  • Tom Hanlin
    replied
    A subdirectory is not a file. The directory attribute may not be set or removed.

    Leave a comment:


  • Scott Slater
    replied
    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.

    Leave a comment:


  • Mike Luther
    started a topic Global file names with ATTRIB command?

    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!
Working...
X