Danny Kon
asked on
Windows cmd/batch dir command set path as variable
This has to work at windows 7 or higher,
I want a cmd/batch wat will do:
set /p ffile=Give the filename
as example calc.exe
find the first directory where i can execute the calc.exe and set this directory to a variable
That i can use "c:\windows\system32\" in a other batch
Thanks for your help
Danny
I want a cmd/batch wat will do:
set /p ffile=Give the filename
as example calc.exe
find the first directory where i can execute the calc.exe and set this directory to a variable
That i can use "c:\windows\system32\" in a other batch
Thanks for your help
Danny
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
After all these years still here :)
This make me happy 100% perfect
Many thanks
Danny