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 the directory without the file name, or just C:\Users\Dev\Desktop\
to be able to only assign the path to a variable.
How can I do this in CMD?