what i am trying to achieve is a search feature that will allow the user to put in the name of a file and it will find that file and save the file’s path as a variable so I’m able to use the file path later on is this possible i have not been able to find any information on this
Share
Write a batch file like:
Now here:
%1is the user provided file name%2is the user provided directory to search first.%3is the user provided directory to search second.To save the details into a text file use:
The
<nul (set /p)trick will output text to the console without a new line