C:Usersjisha>cd DesktopExerciseFiles — this is the command i have given in command prompt in Windows.
The system cannot find the path specified. —-this is the error message.
I want to access the ExerciseFiles folder in the desktop. How to get the path?
I tried to get a folder in my desktop and it is named as ExerciseFiles. Is anyone know how to get the path
1
If you are trying to reach a folder from a cmd then command would be:
cd C:UsersjishaDesktopExerciseFiles
If you are trying to run cmd command from python then it goes like this
import os
os.system('cd C:UsersjishaDesktopExerciseFiles')
1
The simple answer to make this work is removing the starting
i.e. cd DesktopExerciseFiles
The core problem is that when you specify Desktop instead of looking relative to your position (C:Usersjisha), it uses the top level (C:) so it looks for C:Desktop which doesnt exist