How to change current working directory using a batch file December 15, 2022 by Tarik Specify /D to change the drive also. CD /D %root%