I have following script to list out all the files, recursively from a directory, having a
@echo off setlocal for /f %%G in ('forfiles /s /m *.phtml /c "cmd /c echo @relpath"') do echo %%G >> listoffiles.txt endlocal exit
It lists out only relative path to files. The above script is running from an intermediate location, so I am not getting full paths in
Also I am getting quotes in the result lines, which I want to remove.
I want to get absolute path to those files with a few code changes as possible, if a global-variable is available which can be used in my code then it's best for me, as I am not much of Windows batch scripter.