Use the undocumented switch /S of the DOS command RENAME to rename directories in DOS sessions also. The OS/2 command RENAME can rename directories without this switch.
Source: The OS/2 WARP Survival Guide