Reputation: 137
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
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