Renaming windows and directory preservation