Quote:
Originally Posted by DaWei
Have you considered telling us how your attempts fail to meet your expectations, or shall we pull some stuff out of our butts and guess?
Remember, we're not going to benefit from your grade. Tell us something useful.
|
Ok, well,
:BROWSE
Echo Enter Letter to search movie starting with that letter: %%i
for %%i in (A:\Movie_List\List.txt) do findstr /b /i /c:"%%i" >> moviesfound.txt
if not errorlevel=1 (type moviesfound.txt)
else echo Sorry, No Movies Start with %%i in the List
del moviesfound.txt
goto :begin
What I am getting here When I run this Errorlevel is "Enter Letter to search movie starting with that letter: %1". Then nothing. I cant exit the program, I cant get back to the main menu. It just allows me to enter letters, and nothing happens.
My expections is to have an Echo saying "Please Enter the letter" then somehow (and it is this part that confuses me most) I want to take that input, store it in a variable, and put that variable into findstr, where I can return the results of the movies based on the letter. So the user enters "C" they will get every result that starts with C.