View Single Post
Old Nov 15th, 2007, 4:06 PM   #4
ineedofhelp
Newbie
 
Join Date: Nov 2007
Posts: 4
Rep Power: 0 ineedofhelp is on a distinguished road
Re: I have tried.. but I just can't get this

:BROWSE
set /P lettervar="Enter the First Letter of Movie "
for %lettervar% in (A:\Movie_List\List.txt) do findstr /b /i /c:"%lettervar%" >> 

moviesfound.txt
if not errorlevel=1  (type moviesfound.txt)  
else echo Sorry, No Movies Start with %lettervar% in the List
del moviesfound.txt
goto :begin

Am I getting closer? Can you see What I am trying to achieve here? I want the users input to be stored in this variable and then have the variable searched for in the List.txt. When I ran the program I was able to enter a letter, but then my file closes it self.
ineedofhelp is offline   Reply With Quote