If your package names are TMS.A, TMS.B, etc, then use this approach:
cd to the parent directory of TMS
javadoc -d docs -sourcepath . -subpackages TMS
If your source files are in the unnamed package, then that approach won't work. Do this instead:
cd into the TMS directory
javadoc -d docs A\*.java B\*.java C\*.java
Here are some examples:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#examples