I'm new to cmd, having trouble with this:
md "C:\kysumicomp"
for /f "usebackq" %%a in (`CALL DIR /b /s "C:\Program Files" ^| FIND "javac.exe"`) do
copy "%%a" "C:\kysumicomp"
pause
What I am trying to achieve is a batch file that that will find the javac.exe file then copy it to C:\kysumicomp but I don't want it to be an absolute path so if my java updates the batch will still work.