\[Editor's note: Email your scripting solutions (400 words or less) to Reader to Reader at win32sj@winntmag.com. Please include your script and phone number. We'll edit submissions for style, grammar, and length. If we print your contribution, you get $100.\]

In Microsoft's Scripting Runtime Library, the Attributes property of the File object has a bug. If you set a read or write attribute (e.g., ReadOnly, System) for a compressed file, you get an error. Microsoft knows about the problem.

Fortunately, you can work around this problem until Microsoft fixes this bug in a future Scripting Runtime Library release. You can use the WshShell::Run method of the Windows Scripting Host (WSH) to launch a Windows NT command shell so that you can use NT's Attrib command to change the file's attribute. Although this solution isn't elegant, it works.

—Thomas S. Holt