-
Notifications
You must be signed in to change notification settings - Fork 0
7. InfoDir
Destroyer edited this page Dec 13, 2021
·
1 revision
Equivalent to System.IO.DirectoryInfo - It is more Extended and Provides more information.
- 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
Remember that the documentation and examples may be subject to change, depending on the API updates.