Assuming that you are asking how to set custom commands, try this.
@echo off
set "RESPONSE="
goto 'input'
: 'input'
set /p response=What would you like to do?
if /I %response%==help goto 'help'
set /p responsetwo=What would you like to %response%?
if /I %response%==remove set response=del
if /I %response%==check set response=dir
if /I %response%==dir %response% "%responsetwo%"
%response% %responsetwo%
echo %response% "%responsetwo%"
goto 'input'
: 'help'
cls
echo Check = Dir in regular command prompt, checks a directory.
echo Remove = del in regular command prompt, deletes something.
pause
goto 'input'
To add anymore custom commands, simply add
if /I %response%==<word you want to do X command> set response=<X command>
(Replace X with command for second code piece, obviously.)
EDIT: Okay, so after reading your comment I came up with a better solution. Here you go!
@echo off
goto 'input'
: 'input'
cls
set "response="
set /p response=What would you like to do?
set firstresponse=%response:~0,5%
if %firstresponse%==help goto 'help'
pause
if /I %firstresponse%==check set firstresponse=dir && set executeparttwo=%response:~5%
if /I %firstresponse%==remov goto 'remove'
rem Put "if /I %firstresponse%==<whatever the first 5 letters of the command would be> goto '<command name>'
%firstresponse%%executeparttwo%
pause
goto 'input'
: 'remove'
set "firstresponse=" && set firstresponse=%response:~0,6%
if /I %firstresponse%==remove set firstresponse=del
set executeparttwo=%response:~6%
%firstresponse%%executeparttwo%
pause
goto 'input'
: 'help'
cls
echo Check = Dir in regular command prompt, checks a directory.
echo Remove = del in regular command prompt, deletes something.
pause
goto 'input'
Remove C:\users\...File.txtis correct andRemove blablablais wrong. This looks acceptable from a human point of view. But here we are dealing with a computer: if you create a file, calledblablabla, then why wouldRemove blablablabe wrong?if remove ${file} ; then echo "${file} removed OK" ; else echo "ERROR removing $file}"; fi. If cmd.exe is able to execute a similar algorithm, then you have a place to start, but my experience with cmd.exe is 25 years out of date. I do see relatively sophisticated cmd.exe solutions here, so look around. GdLuckpromptmay be confusing to readers, as the typical meaning is related to the command-line prompt, whereecho %prompt%may return something like$P$G, which will displayC:\Users\Shellter>. I would rephrase your title as "How to prompt user input in batch file", and edit the rest of the Q to match that idea. Good luck.