I have a scenario:
FORFILES /P "C:\users\DominiqueGerry\Work Files\" /S /M *.doc /C "cmd /c echo @fsize"
gives me an error:
ERROR: Invalid argument/option - '@fsize'.
Type "FORFILES /?" for usage.
But when I remove the slash, it works:
FORFILES /P "C:\users\DominiqueGerry\Work Files" /S /M *.doc /C "cmd /c echo @fsize"
I do not understand why this does not work without the backslash, but does not with it. I cannot find any official documentation explaining this. and do not even see any of it mentioned when running help forfiles /? I would appreciate any help on this.
The best part is. The error is not even related to the issue at hand.