|
Answer» 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:
CODE: [Select] 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
Well your code is still not setup correctly.
If all your vbscript does is ITERATE a directory listing you can easily do that a couple of ways with native batch script.
|