There's no syntax error in that. You said you tried stuff that gave you "The syntax of the command is incorrect."
By the way, -i with no extension doesn't work in Windows.
In reply to Re^3: File Globbing in Windows One-Liner
by ikegami
in thread File Globbing in Windows One-Liner
by roho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |