Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function string get_FileSystem( strPath )
- object objFSO, objDrive;
- begin
- set objFSO = CreateObject ( "Scripting.FileSystemObject" );
- if ( IsObject (objFSO) ) then
- try
- set objDrive = objFSO.GetDrive( objFSO.GetDriveName( strPath ) );
- if ( IsObject( objDrive ) ) then
- //Available return types include FAT, NTFS, FAT, FAT32, and CDFS
- return objDrive.FileSystem;
- endif;
- catch
- MessageBox( "Unable to determine File System.", INFORMATION );
- endcatch;
- endif;
- end;
- Console.WriteLine(new DriveInfo(Environment.SystemDirectory).DriveFormat);
Add Comment
Please, Sign In to add comment