Creating a batch file to look up another file -


i learning batch language , stuck. want create batch file ask directory enter location of hi.txt:

once user inputs location check whether location correct or not searching file hi.txt. if finds it echo file found ! , move next block of code

however if not find return error hi.txt not found , again ask directory. searched on net results either of searching file or asking simple questions. , if answer, please tell me code in answer can understand , it.

edit: least tried set /p pathname=enter key:%=%

thanks & regards,


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -