Help with find and start script
Posted: 21 Oct 2008 23:24
Hey everyone new here just started with batch's and what not. Been searching for a while but cant find it anywhere, don't know if its possible.
Alright, I want to make a batch file that when run will search for a file then start it and is set up so that it
-will ask the user for the path, which in my case i will just want a directory so i assume -s will have to be in the code
-then ask for the user for search information. I want it to be able to take in 2 inputs for one file, so lets say the file name is FILE_NAME_01.xxx and another would be FILE_BLANK_02.xxx, and the user wanted the first one he/she could enter "FILE" and "01" so if you dont know complete file name. I tried wildcards but didnt seem to want to work.
3. Then when found would ask if it is the right file if so start the file if not retry the search with different query.
Ive written a small one that only works if I put in the full path and can only accept one input and then to start that file i have to copy the full path and enter. So it doesnt save me any time, I could almost use explorer that quickly.
Thanks in advance
Alright, I want to make a batch file that when run will search for a file then start it and is set up so that it
-will ask the user for the path, which in my case i will just want a directory so i assume -s will have to be in the code
-then ask for the user for search information. I want it to be able to take in 2 inputs for one file, so lets say the file name is FILE_NAME_01.xxx and another would be FILE_BLANK_02.xxx, and the user wanted the first one he/she could enter "FILE" and "01" so if you dont know complete file name. I tried wildcards but didnt seem to want to work.
3. Then when found would ask if it is the right file if so start the file if not retry the search with different query.
Ive written a small one that only works if I put in the full path and can only accept one input and then to start that file i have to copy the full path and enter. So it doesnt save me any time, I could almost use explorer that quickly.
Thanks in advance