Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for isfat.bat

(view source code of isfat.bat as plain text)

  1. @ECHO OFF
  2. IF "%1"=="/?" GOTO Syntax
  3. VER | FIND "Windows NT" > NUL
  4. IF ERRORLEVEL 1 GOTO Syntax
  5.  
  6. SET FAT=
  7. FOR /F "TOKENS=2,3* DELIMS= " %%A IN ('DIR/A/TA/P/-P/W/-W %~d1 ^| FIND ":" ^| FIND "-"') DO IF NOT "%%A"=="00:00" SET FAT=non-
  8. ECHO.
  9. ECHO Drive %~d1 has %FAT%FAT file system
  10. GOTO:EOF
  11.  
  12. :Syntax
  13. ECHO.
  14. ECHO IsFAT, Version 1.00 for NT
  15. ECHO Written by Rob van der Woude
  16. ECHO http://www.robvanderwoude.com
  17. ECHO.
  18. ECHO Usage: ISFAT [ drive ]
  19.  
  20. :End
  21.  

page last uploaded: 2017-08-21, 14:26