I’m trying to run a basic forfiles command, but no matter what mask I use it always simply prints the whole content of the directory. Not filtered for *.bat no “is a batch file”, just a simple list off all files in C:\
I’m working on a winXPproffesional. What could be the cause?
forfiles /p c:\ /s /m *.bat /c "cmd /c echo @file is a batch file"
Somehow this version uses a different syntax:
works!