Zhorer5231
Zhorer5231

Reputation: 137

Windows Command Prompt(cmd) move command

Moving files in windows command prompt using the "move" command.

C:\>move c:\OEM\lol.txt c:\Programdata\Microsoft\Windows\Start Menu\Programs\Startup\lol.jpg

For some reason this won't move the file to the desired location. Could someone help me with the problem?

Upvotes: 5

Views: 7174

Answers (1)

foxidrive
foxidrive

Reputation: 41224

Get into the habit of double quoting your paths and filenames and it should be fine.

move "c:\OEM\lol.txt" "c:\Programdata\Microsoft\Windows\Start Menu\Programs\Startup\lol.jpg"

The space is the issue there, and the quotes protect it.

Upvotes: 6

Related Questions