rename directory on windows


1 comment

  • Avatar

    Unfortunately it is a limitation of some of the APIs that we are using to rename a file.

    One possible solution is to use cmd and call the ren command to do the rename operation. For example:

    <runProgram> <program>cmd</program> <programArguments>/c ren APPLICATIONS Applications</programArguments> <workingDirectory>${installdir}</workingDirectory> </runProgram>

    Another one is to use the temporary directory mentioned, however, the ren command may be better if you want to avoid doing it.

Please sign in to leave a comment.