Question: in a batch there is a envoroment variable called %timecode% that, if timecode exist and is defined, output a string of this type:

```
HH:MM:SS:FF

```

for example 01:32:21:05

In PAL mode, 25fps, I would like convert this timecode in his correspondant frame number, for rxample in the case of 01:32:21:05 is 138530

so the convert processing should output 138530

```
Another examples: 00:00:00:00 ----------------> 0
00:00:00:01 ----------------> 1
........
00:00:00:24 ----------------> 24
00:00:01:00 ----------------> 25
00:00:01:01 ----------------> 26

```

and so on
How can I do?

Answer: 
```
@echo off
    setlocal enableextensions disabledelayedexpansion

    for /f %%u in (user.txt) do (
        pushd "C:\Folder\%%u" && (
            for /r %%f in (*) do @xcopy /i /y "%%f" "c:\Folder 2\%%u\" 
            popd
        )
    )

```

One simple solution is to remove the first `for` replaceable parameter from the recurse clause of the second `for`
You could achieve this by calling a subroutine instead of nesting the loops. Something like:

```
for /f %%u in (user.txt) do call :doxcopy %%u
goto :eof

:doxcopy
for /r "C:\Folder\%1" %%f in (*.*) do @xcopy "%%f" "C:\Folder 2\%1" 
goto :eof

```