Rename folder with a .bat file

Solved
Alpachio Posted messages 58 Status Member -  
Alpachio Posted messages 58 Status Member -
Hello,
I am looking to rename a folder "Mas Ist" to "Masu" with a .bat file

The command looks like this:

ren localhost\Mas Ist Masu

The problem is that the folder name "Mas Ist" has a space in it, and the MS-DOS command cannot rename it because it doesn't know if the first folder is called "Mas" or "Mas Ist"

I hope you understand!

Waiting for your responses...
Configuration: Windows XP Firefox 3.0.7

2 answers

  1. El_Rigolo Posted messages 2288 Status Contributor 607
     
    Hi,

    cd [directory path where the folder to be renamed is located]
    ren "Mas Ist" "Masu"

    and make sure to use the quotes ;)
    --
    "It's not us who walk crooked, it's the world that's going awry!"
                     - La Rue Ket' ;)
    10
  2. Alpachio Posted messages 58 Status Member 9
     
    Cool, thanks a lot!!!
    I had everything right, it's just that I forgot the quotes in my .bat file!

    Thanks again, see you later!
    1