1
In batch I can search a file with the following command:
C:\>DIR /S /B PROGRAMA.EXE
And if the file is found it will return like this:
C: Users Dev Desktop Program.exe
I would like to be able to get in the result only with the directory without the file name, ie just C:\Users\Dev\Desktop\
to assign only the path to a variable.
There’s a way to do that at the CMD?
Did the answer help you? Need more details?
– Murillo Goulart
Helped yes, but does not return the full path when the file is inside more than 2 folders, I will give a vote on your answer for the work you had, but I will publish the answer that solved my problem. Thank you very much.
– Laércio Lopes