Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/02/2002, 04:34
GenX
 
Fecha de Ingreso: febrero-2002
Ubicación: Alicante España
Mensajes: 30
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: problema con CopyFile y ficheros solo lectura

Hola

He encontrado esto en: http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28001169&amp

'''''''''''''''''''''''''''''''''''''''''''''
' ShowFileAttr
' Purpose:
' Generates a string describing the attributes of a file or folder.
' Demonstrates the following
' - File.Attributes
' - Folder.Attributes
'''''''''''''''''''''''''''''''''''''''''''''

Function ShowFileAttr(File) ' File can be a file or folder

Dim S
Dim Attr

Attr = File.Attributes

If Attr = 0 Then
ShowFileAttr = "Normal"
Exit Function
End If

If Attr And FileAttrDirectory Then S = S & "Directory "
If Attr And FileAttrReadOnly Then S = S & "Read-Only "
If Attr And FileAttrHidden Then S = S & "Hidden "
If Attr And FileAttrSystem Then S = S & "System "
If Attr And FileAttrVolume Then S = S & "Volume "
If Attr And FileAttrArchive Then S = S & "Archive "
If Attr And FileAttrAlias Then S = S & "Alias "
If Attr And FileAttrCompressed Then S = S & "Compressed "

ShowFileAttr = S

End Function

Espero te sirva de algo.
Saludos