Skip to content

7. InfoDir

Destroyer edited this page Dec 13, 2021 · 1 revision

Namespace: Core.Folder

Equivalent to System.IO.DirectoryInfo - It is more Extended and Provides more information.

Get Folders

  • VB
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.Name)) ' Result: Test
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.Parent)) ' Result: Test Parent
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FullName)) ' Result: C:\Test Parent\Test
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.DriveRoot)) ' Result: C:\
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.DriveLetter)) ' Result: C
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.Name_Length)) ' Result: 4
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FullName_Length)) ' Result: 19
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.Attributes_Enum)) ' Result: 8208
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.Attributes_String)) ' Result: Directory, NotContentIndexed
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.CreationTime)) ' Result: 16/09/2012  8:28:17 
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.LastAccessTime)) ' Result: 16/09/2012 10:51:17
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.LastModifyTime)) ' Result: 16/09/2012 10:51:17
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FileSize_Byte)) ' Result: 5.127.975
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FileSize_KB)) ' Result: 5.007.79
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FileSize_MB)) ' Result: 4,89
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FileSize_GB)) ' Result: 0,00
        MessageBox.Show(InfoDir.Get_Info("C:\Test Parent\Test", InfoDir.Info.FileSize_TB)) ' Result: 0,00
  • C#
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.Name)); // Result: Test
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.Parent)); // Result: Test Parent
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FullName)); // Result: C:\Test Parent\Test
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.DriveRoot)); // Result: C:\
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.DriveLetter)); // Result: C
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.Name_Length)); // Result: 4
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FullName_Length)); // Result: 19
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.Attributes_Enum)); // Result: 8208
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.Attributes_String)); // Result: Directory, NotContentIndexed
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.CreationTime)); // Result: 16/09/2012  8:28:17 
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.LastAccessTime)); // Result: 16/09/2012 10:51:17
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.LastModifyTime)); // Result: 16/09/2012 10:51:17
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FileSize_Byte)); // Result: 5.127.975
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FileSize_KB)); // Result: 5.007.79
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FileSize_MB)); // Result: 4,89
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FileSize_GB)); // Result: 0,00
    MessageBox.Show(InfoDir.Get_Info(@"C:\Test Parent\Test", InfoDir.Info.FileSize_TB)); // Result: 0,00
Clone this wiki locally