How do I rename a path that has spaces in it under Windows 7?
Command line:
rename c:\ho hum\new folder -> c:\ho_hum\new_folder
In the Windows command line, any file or directory containing a space must be surrounded with quotation marks for it to be recognized. For example, if you wanted to rename the file "stats baseball.
In the Command Prompt, the caret character ( ^ ) will let you escape spaces—in theory. Just add it before each space in the file name. (You'll find this character in the number row on your keyboard.
Windows CMD Rename Folder To rename a folder in the command line, type the following command: ren Folder NewFolderName. Note: We can also use ren (the short form of rename) for rename operations. Both Ren and Rename refer to the same command.
This can only be done by moving the folder and set a new name for the destination:
move "c:\ho hum\new folder" "c:\ho hum\new_folder"
move "c:\ho hum" "c:\ho_hum"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With