Visual Basic - Obtener Atributos de un fichero

Life is soft - evento anual de software empresarial
 
Vista:

Obtener Atributos de un fichero

Publicado por Rafa (3 intervenciones) el 25/07/2002 09:41:07
Deseo saber como obtener los atributos de un fichero en Visual Basic.
Si puedes me mandas un ejemplo.
Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Obtener Atributos de un fichero

Publicado por g0039 (43 intervenciones) el 25/07/2002 11:21:47
1.- Tienes q hacer una referencia en el proyecto a "MicroSoft Scripting Runtime"(Menu.:Proyecto,Opcion Referencias)

Dim ObjFileSystem As FileSystemObject
Dim Fichero As File
Set ObjFileSystem = New FileSystemObject
Set Fichero = ObjFileSystem.GetFile("c:\kk.txt")
Debug.Print Fichero.DateCreated
Debug.Print Fichero.DateLastAccessed
Debug.Print Fichero.DateLastModified
Debug.Print Fichero.Drive
Debug.Print Fichero.Name
Debug.Print Fichero.ParentFolder
Debug.Print Fichero.Path
Debug.Print Fichero.ShortName
Debug.Print Fichero.ShortPath
Debug.Print Fichero.Size
Debug.Print Fichero.Type
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Obtener Atributos de un fichero

Publicado por Alvaro Marín (574 intervenciones) el 25/07/2002 13:32:30
Estimado amigo:
En www.ambsoftware.com encontrarás un ejemplo que te muestra cómo hacerlo.
Para localizarlo te recomiendo que utilices el buscador de recursos de la página principal y escribas en la casilla la palabra "atributo".
Espero que esta información te sirva de ayuda.
Un saludo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar