Get extended file information details

前端 未结 2 1152
夕颜
夕颜 2020-12-11 10:40

How can one obtain the details of a windows file using VB.net?

The type of details I mean are those found when I right click on a file, say an MS word doc, then clic

2条回答
  •  鱼传尺愫
    2020-12-11 11:19

    Just use something like :

    Dim MyFileInfos as System.IO.FileInfo = My.Computer.FileSystem.GetFileInfo(PathToYourFile)
    

    Then get infos using MyFileInfo.* (whatever you need, use IntelliSense).

    Have a nice day

提交回复
热议问题