Categories
How to inject cmd search result into variable?
I have a task to enter the search result dir steam.exe /sinto a variable, in order to then move the file using move to this directory from the variable Please, help !!
dir steam.exe /s
Answer the question
In order to leave comments, you need to log in
Correct command: dir /s steam.exe Something like this would be:
dir /s steam.exe
for "tokens=* delims=" %%a in ('dir /s steam.exe') do ( move "%%~a" "путь куда перемещаем файл" )
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question