How can I move a folder from one directory to another in Windows command line?

Solution 1:

just open cmd.exe (Start -> write cmd.exe -> press Enter) and then type:

move "<source_dir>" "<destination_dir>"

where <source_dir> is the source directory path and <destination_dir> is the destination directory path. The quotation marks (") are needed if the filepath(s) contain spaces.

Solution 2:

In CMD, enter:

move myFolder c:\ProgramData