hidden attribute on Windows files

Roel Schroeven rschroev_nospam_ml at fastmail.fm
Mon Mar 7 15:43:10 EST 2005


rbt wrote:
> How do I enable the hidden attribute when creating files on Windows
> computers? I'd *really* prefer to do from the standard Python installer
> (no win32 extensions). Any tips?

You could do

os.system('attrib +h hidethis.txt')

but that only works if hidethis already exists.

-- 
"Codito ergo sum"
Roel Schroeven



More information about the Python-list mailing list