cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
danieluc
Level 6

How can I check if the system is NTFS/FAT?

Hy guys,

We are using Installshield 2008 Premiere to deploy our application. I was wondering (I need it in my installer) if I can check what type of system is the target system for the installation ? (NTFS/FAT/FAT32..)
Based on this I need to do some different actions ..

Has someone encounter this before ?
Thanks in advance,
Daniel
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

I don't think there's anything built in; however, searching these forums and the KB for "GetVolumeInformation" will give sample code that you can use to determine this...
0 Kudos
rguggisberg
Level 13

CHKDSK /L
will show you if it is NTFS.

I prefer to do this:
CHKDSK /L > nul 2> nul
IF ERRORLEVEL 1 ECHO.Drive is FAT32.

That pipes the output and stderr to nul and you check the error level yourself. Since the /L option is not applicable to FAT32 drives, you will get an error and know that it is FAT32.
Regards, Ron
0 Kudos