>Hi everyone.
>
>I'd like to know if is there any API function that sets a file attribute (Hidden, Read Only, System...).
>I'm using the "!" command at the moment (and I don't like the results.. ;) My screen blinks every time whem I run this command).
>
>Thanks for any help...
>
>Regards...
>
>Paulo.
You don't have to use DOS command to do that. Download file#
9311 'File Attribute Get & Set' or use WSH
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile(lcfile)
oFile.Attributes = BITAND(oFile.Attributes, 0xFE)
--sb--