Tol!k

|
Posted: Thu Jun 21, 2012 21:21 Post subject: |
|
|
Code: | @echo off &setlocal enableextensions &chcp 1251 >nul
set Label=Иванов Петров Сидоров
for %%a in (Z Y X W V U T S R Q P O N M L K J I H G F E D) do (
if exist %%a:\. for /f "tokens=6,*" %%b in ('vol %%a:') do (
for %%l in (%Label%) do if /i "%%c"=="%%~l" set "Drive=%%a"
)
)
if not "%Drive%"=="" (echo Letter: %Drive%) else (echo Label not found.)
if not "%Drive%"=="" if exist "ReMount.exe" (
%ComSpec% /C "ReMount.exe" -ReMount %Drive%: R: -f
) else (
echo File ReMount.exe is not exist.
)
|
|
|