Three-dimensional concrete printing (3DCP) technology with solid wastes has significant potential for sustainable construction. However, the hardened mechanical properties of components manufactured using 3DCP technology are affected by weak interlayer interfaces, limiting the widespread application of 3DCP technology. To address the inherent limitations of 3DCP technology, conventional improvement strategies, such as external reinforcement and the optimization of material properties, lead to increased production costs, complex fabrication, and decreased automation. This study proposes an innovative spatial path optimization method to enhance the mechanical performance of 3D-printed, cement-based components. The novel S-path design introduces additional printed layers in the weak interlayer regions of the printed samples. This design improves the spatial distribution of fiber-reinforced filaments in continuous weak zones, thus enhancing the functional efficiency of fibers. This approach improves the mechanical performance of the printed samples, achieving compressive strengths close to those of cast samples and only a 20% reduction in average flexural strength. Compared to using a conventional printing path, the average compressive strength and flexural strength are improved by 30% and 55%, respectively, when the S-path layout is employed in 3DCP. Additionally, this method significantly reduces the anisotropy in compressive and flexural strengths to 26% and 28% of samples using conventional printing paths, respectively. Therefore, the proposed method can improve the mechanical properties and stability of the material, reducing the safety risks of printed structures.