:: by bitbyte http://plop.at @echo off if "%1"=="" goto help partlist -d %1|find "extended" > NUL if errorlevel 1 goto noextends echo extends found goto end :noextends echo no extends found goto end :help echo check if extends on the drive echo. echo parameter: 0 ...harddisk 1 echo 1 ...harddisk 2 echo. echo example: extends 0 :end