Detecting FAT/NTFS drives 
Author Message
 Detecting FAT/NTFS drives

 Does the FileSYstemObject have any properties to determine whether a partition
is FAT or NTFS?

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Sun, 15 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives

Quote:
>  Does the FileSYstemObject have any properties to determine whether a partition
> is FAT or NTFS?

>  Neil Pike MVP/MCSE.  Protech Computing Ltd
>  (Please post ALL replies to the newsgroup only unless indicated otherwise)

You could use this:    

Set FSys = CreateObject("Scripting.FileSystemObject")
Set allDrives = FSys.Drives
For each iDrive in allDrives
        if iDrive.DriveType = fixedDisk and iDrive.isReady then
                MsgBox iDrive.FileSystem
        end if
Next
Set allDrives = Nothing

Primoz



Sun, 15 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Primoz - tried that.  It doesn't display anything though...

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Sun, 15 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Add

fixedDisk = 2

--
Michael Harris
MVP Scripting

Primoz - tried that.  It doesn't display anything though...

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Sun, 15 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Yes, Michael is correct.
Sorry for the omission of this "detail".

Primoz


Quote:
> Primoz - tried that.  It doesn't display anything though...

>  Neil Pike MVP/MCSE.  Protech Computing Ltd
>  (Please post ALL replies to the newsgroup only unless indicated otherwise)



Mon, 16 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Sorry Michael, I'm being dumb.  Add it to where?

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Mon, 16 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives

Quote:
> Sorry Michael, I'm being dumb.  Add it to where?

>  Neil Pike MVP/MCSE.  Protech Computing Ltd
>  (Please post ALL replies to the newsgroup only unless indicated otherwise)

As a definition (at start of the script)

Primoz



Mon, 16 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Woohoo.  Now it works fine!

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Mon, 16 Sep 2002 03:00:00 GMT  
 Detecting FAT/NTFS drives
Primoz - aha - now it all becomes clear.  Sorry for being thick!

 Neil Pike MVP/MCSE.  Protech Computing Ltd
 (Please post ALL replies to the newsgroup only unless indicated otherwise)



Mon, 16 Sep 2002 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Check if C:\ drive is NTFS or FAT

2. Enumerate Drives and whether FAT or NTFS

3. Convert FAT to NTFS

4. Converting FAT to NTFS

5. How to mount NTFS drive using a script?

6. Detecting Files On A Network Drive Using FSO

7. Detect if DVD drive and install DVD player software

8. Algorithm to compare dates on NTFS and FAT dates?

9. Fat Ladies of Jupiter (real prepress prob - not spam)

10. Fat mac-generated postscript files

11. Henry and Mary's Big Fat PostScript Book

 

 
Powered by phpBB® Forum Software