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

I need to a folder into the ProgramData directory. Is there a way I can see it as unhidden?

If not, what's the command to move one folder (name_of_folder) into another (c:\ProgramData) in Windows Vista?

Thanks.

1

3 Answers

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.

2

In CMD, enter:

move myFolder c:\ProgramData

If you haven’t enogh user rights you can call the cmd.exe this way, too.

Click Start -> enter cmd in the input field

then hold the keys STRG plus SHIFT and hit ENTER too.

Now the run as admin dialog pops up ;)

Now move name_of_folder c:\ProgramData has power.

P.S. STRG is the German name for CTRL key.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like