You need to surround the path in double quotes if there is a space in the path! for example : cd "C:Program Files"