Hello,
I have been trying for days to create a batch file that will run a vbscript (dirlist.vbs) in every subdirectory and sub subdirectory of the parent directory. Is this even possible. I have found some examples that come close to what I am looking for through searching, but I can't make sense of them.
Any help would be greatly appreciated.
Never mind I got it worked out. For anyone looking for this:
@echo off
call :treeProcess
goto :eof
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
for %%f in (*.vbs) do cscript %%f
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b