bulk change windows folder attributes

You are in a world of hurt if you need this. The ^T is “ctrl + t” and is important for folders with spaces. It signifies a windows carriage return as the delims delimiter for batch or command line.

C:\ > for /F "usebackq delims=^T" %i in (`dir /s /b`) do attrib -h -s "%i"

this is easier:

C:\ > attrib -s -h /s /d

One thought on “bulk change windows folder attributes

  1. this only does top level directories (i.e. -mindepth 1 -maxdepth 1)

    for /F “usebackq delims=^T” %i in (`dir /ad /b`) do attrib -h -s “%i”

Leave a Reply

Your email address will not be published. Required fields are marked *