Could something like this do what you expect?
<br />
@echo off<br />
set /P test=type the file:<br />
<br />
call :check_main "%test%"<br />
pause<br />
goto :EOF<br />
<br />
:check_main<br />
if "%~d1" == "%HOMEDRIVE%" (<br />
echo the file is in the main partition<br />
) else (<br />
echo the file is not in the main partition<br />
)<br />
goto :EOF<br />
The snippet above checks, whether a gile with a give name is located on the %HOMEDRIVE%