Please Help! I am trying to find a way to extract a file name from a directory of files. For example, if you have a folder named "C:\scanadm\file\in" that contains files
12343567.txt
7654321.txt
and you want to extract the name of each file in a for loop and store it in a variable:
FOR /R C:\scanadm\file\in %A IN (*.*) DO (Get Individual Name of File and Put in Variable)
How do you do this? I have been all over the internet, and cannot find this anywhere - It can't be that hard!!