Помогите с командными файлами!
Задание: Выполнение проверки файловой структуры заданного дискового накопителя (от A: до Z:) с помощью утилиты CHKDSK из состава операционной системы Windows. Предусмотреть выбор режима работы утилиты и проверку кода ее завершения. Выполнить проверку существования накопителя с заданным идентификатором.
Вот код:
@echo off
echo The program allows to check up a disk in the presence of errors
set /p name=Enter the disk name:
if not exist %name%: goto point_1
set /p proverka=Do you want to execute verification with the correction of errors?(y,n)
if %proverka==y goto point_2
if %proverka==n goto point_3
:point_2
set /p proverka=Do you want to find the damaged sectors and recover information, kept in them?(y,n)
if %proverka==y goto point_4
if %proverka==n goto point_5
:point_5
chkdsk %name%: /f
rem Verification of completion of verification code
if errorlevel 0 goto erroccurred
echo Verification is executed without errors
goto :eof
:erroccurred
echo Error at instruction execution
goto end
:point_4
chkdsk %name%: /f /r
rem Verification of completion of verification code
if errorlevel 0 goto erroccurred
echo Verification is executed without errors
goto :eof
:erroccurred
echo Error at instruction execution
goto end
:point_3
chkdsk %name%:
rem Verification of completion of verification code
if errorlevel 0 goto erroccurred
echo Verification is executed without errors
goto :eof
:erroccurred
echo Error at instruction execution
goto end
:point_1
echo The disk name is indicated not right
goto end
:end
pause
Что здесь не правильно? Программа не хочет проверять диск
это задание для лабораторной работы по предмету операционные системы и среды.