How to tell forfiles to execute command in PATH?
The path needs to be quoted, and the quote must be escaped.
FORFILES -m *.wsp -c "CMD /C ^0x22C:\Program^ Files\Common^ Files\Microsoft^ Shared\web^ server^ extensions\12\bin\stsadm.exe^0x22 -o^ addsolution^ -filename^ @FILE"
A co-worker suggested using the hex for ", and I eventually figured out that the hex needed escaping.
Another possible answer is to use the old 8.3 names you get by doing dir /X.
Like: C:\PROGRA~1 instead of C:\Program Files.