Bill
Your code runs OK for me in for both 32 bits and 64 bits. I don't get a DOS box.
As a natural instinct I would not click on OK before exiting from editing the name of the new folder but it turns out that (for me) it makes no difference to the outcome.