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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -