현재 원하는 폴더에 어떤 파일이 들어 있는지 알려주고 해당 파일 이름을 홍보 할 수있는 배치 파일을 만들고 있습니다. 거기에서 나는 파일의 이름을 입력하는 입력 필드를 원합니다.이 경우 파일을 엽니 다. 정말 누군가가 나를 도울 수있을 것텍스트 파일을 일괄 적으로 읽고 유효한 입력으로 사용할 수 있습니까?
,이 파일 이름의 전체 이상의 화면이있을 때 어떻게됩니까이 부분
:dan
cls
echo Finding files in danish
echo.
dir C:\Users\Anton\Desktop\Skoe\dansk\ /b > files.txt %fi%
dir C:\Users\Anton\Desktop\Skoe\dansk\ /b %fi%
echo.
echo.
echo.
echo.
set /p sr=Which file do you wish to start?
// this is where i need the code to check if the user entered a file name that is in that // folder, and if it is a valid file, send the user to :filestart where hes file will be //started
pause
:filestart
echo filstart
// here i need the desired file started
내 현재 코드는? 이름을 숫자로 표시하고 사용자가 숫자 만 입력하도록하는 또 다른 방법이 있습니다. 그게 너에게 쓸모가 있니? – foxidrive
답장을 보내지 않으셨습니까? – foxidrive