windows - How to take name from file with specific extension and use it as variable in batch script? -


can tell me how take name specific file specific extension (.pdf) , use variable? in advance...

for %%f in (*.pdf) (      set x=%%f ) echo %x% 

assuming there's 1 pdf in current directory.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -