+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Rename Folders in Technical; Ive just created my new domain from scratch (2008R2) as the old network name was the old school name. I ...
  1. #1
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,152
    Thank Post
    130
    Thanked 54 Times in 47 Posts
    Rep Power
    38

    Rename Folders

    Ive just created my new domain from scratch (2008R2) as the old network name was the old school name. I have created all the new student accounts using our new naming convention for students, old one was the first part of their lea email address. So for Tom Smith it would be something like smitht012 for the old and the new ones are intake year followed by name like 12smitht. I can migrate their home areas over but obviously the names will be wrong for using the %USERNAME% when mapping home drives and permissions etc.

    Is there an easy way that i can rename the old folders to new folders? Or will i have to create new folders and manually copy over data!!

    I have a spreadsheet with Student name, old username, new username as the 3 columns if that makes it easier for scripting it somehow!!

    Have looked on google but most bulk renamers are for files and the 2 i tried for folders didnt work!

    Does someone have a script that i can have to do the above i would be most grateful

  2. #2

    Join Date
    Oct 2009
    Location
    Oldham, Lancs
    Posts
    34
    Thank Post
    1
    Thanked 7 Times in 6 Posts
    Rep Power
    11

    Smile

    If you the old foldername and the new foldername all you should need is to (in the folder they are in) run the rename command from a prompt.

    rename OLDFOLDERNAME *space* NEWFOLDERNAME

    i.e.
    rename test1 1test
    would take the folder 'test1' and rename it '1test'

    now, with excel if you have 3 columns. ColA with 'rename' ColB with oldfoldername and ColC with newfoldername and save it as a csv file.
    Once as a CSV file, open it in notepad or similar (i use notepad++) and replace all the commas with a space using find and replace.

    Save as a batch file and run.

    I use this method a lot for bulk commands, creating folders, security permissions, AD stuff etc.


    Hope this makes sense.

  3. Thanks to jonatkinson from:

    DSapseid (27th July 2012)

  4. #3
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,152
    Thank Post
    130
    Thanked 54 Times in 47 Posts
    Rep Power
    38
    Thats brilliant!! Works a treat!! Thanks alot!

  5. #4

    Join Date
    Oct 2009
    Location
    Oldham, Lancs
    Posts
    34
    Thank Post
    1
    Thanked 7 Times in 6 Posts
    Rep Power
    11
    Quote Originally Posted by DSapseid View Post
    Thats brilliant!! Works a treat!! Thanks alot!
    No Problem. Glad to be of service

SHARE:
+ Post New Thread

Similar Threads

  1. Home folders renames to My Documents
    By bewlay51 in forum Windows Server 2008
    Replies: 41
    Last Post: 19th September 2013, 08:46 AM
  2. File/Folder Rename Refresh Issue
    By Chuckster in forum Windows
    Replies: 4
    Last Post: 23rd March 2010, 01:43 PM
  3. Can't rename files/folder
    By adamf in forum Windows
    Replies: 5
    Last Post: 30th January 2009, 11:32 AM
  4. Vista Renames Server 2003 home folders
    By MACLURE-E in forum Windows Vista
    Replies: 14
    Last Post: 27th January 2009, 08:31 PM
  5. Finding out who renamed a folder
    By tosca925 in forum Windows
    Replies: 7
    Last Post: 16th June 2007, 06:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •