I have a root path for which I have sub-directories. Within each sub-directory is a number of files for which I need to process.
I have the current batch script:
@echo off
for /d %%K in (C:\Users\Proxy\*) do (
echo %%K
set /a x=0
for %%F in (%%K\*) do (
echo %%F
echo %x%
set /a x+=1
)
)
For each subdirectory in root path, echo file name.
However I noticed that my output is missing files and is not completing the loop properly.
What is going wrong?
I am quite new to batch scripting so excuse my inexperience.