We propose a user-dedicated optical path switching technique for low-latency and seamless handover in the radio access network (RAN) with the all-photonic network (APN). The APN is a network that connects end points directly with optical paths of dedicated wavelengths assigned to each user and provides large-capacity and low-latency connections. As mobile systems beyond 5th generation (5G) and 6th generation (6G) will require extremely low latency, applying the APN to the RAN is promising to achieve this. However, the RAN with the APN has a challenge in optical path switching during the handover procedure of mobile systems because optical switches that compose the APN do not have an Internet protocol (IP) layer function that enables routing control for handover in the conventional router network. Our proposed optical path switching technique to solve this challenge utilizes optical-wireless cooperative control and switches an optical path dedicated to user equipment (UE) executing handover in conjunction with its handover procedure. The key point of the proposed technique is that a next generation node B (gNB) transmits an optimal-timing optical path switching trigger to the optical switch. We experimentally demonstrated the generation of a dedicated optical path for UE in the RAN with the APN as a premise to enable the proposed optical path switching technique. To evaluate the feasibility and effectiveness of the proposed optical path switching technique, we experimentally compared the optical switch and router in terms of latency performance, packet loss, and packet misdirection in the path switching during handover. The results indicated successful optical path switching during handover without packet loss and packet misdirection while reducing the latency per single network equipment by 99%, from 4 µs for the router to 45 ns for the optical switch.