How should I do this in command prompt?

I made a file organizer code in python that uses command prompt and I got it to work by moving it into my C:/Users/Username folder and copying my downloads folder (which is what I want to sort) but when I type in

C:\python Downloads 

It says there is no such file called But now when I move the program into C:\ it says it cant find Downloads. This is my first time using command prompt does anyone have any tips.

3 answers

  • answered 2021-02-24 11:03 mudgal

    Instead of just using Downloads you can run command having complete path to the Downloads folder like below

    C:\python C:/Users/Username/Downloads

    NOTE: Replace Username with the correct username as per your device where you are trying to run this command.

  • answered 2021-02-24 11:04 tino

    You should add the full path to Downloads

    C:\ python C:\FullPathToDownloads\Downloads

  • answered 2021-02-24 11:14 D.CMorgan

    Found the answer. It is because I have multiple disks including my D:\ drive so the downloads folder was located in there so the command I used was.python D:\Users\Username\Downloads