- Aug
- 197
- 5
Consider the following contents of my
I use that to execute a given command in every subfolder of a given root folder. It's a handy way, for example, to do a
For reference, line nine is the closing parenthesis in the block of work to be done for each sub-folder. I'd like to suppress that, and honestly I don't even know why it's telling me that in the first place. Yes, I know TakeCommand is not loaded: is that a problem? A warning? An error?
Thanks in advance for any light anyone can shed on this for me.
ForEachSubfolder.bat
batch file:@echo off
pushd
for /d %%d in (.) do (
echo Changing to: %%d
cd "%%d"
rem echo %cd%
%*
cd ..
)
popd
I use that to execute a given command in every subfolder of a given root folder. It's a handy way, for example, to do a
git pull
for every source project underneath a common root. For sake of context, I'm running the command within a TCC tab in Windows Terminal, and for every single sub-folder processed, it emits the following message:TCC: C:\Users\John\Dropbox\Scripts\foreachsubfolder.bat [9] Take Command is not loaded
For reference, line nine is the closing parenthesis in the block of work to be done for each sub-folder. I'd like to suppress that, and honestly I don't even know why it's telling me that in the first place. Yes, I know TakeCommand is not loaded: is that a problem? A warning? An error?
Thanks in advance for any light anyone can shed on this for me.