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 ...
27th July 2012, 03:20 PM #1
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
27th July 2012, 03:43 PM #2
- Rep Power
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
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.
Thanks to jonatkinson from:
DSapseid (27th July 2012)
27th July 2012, 04:18 PM #3
Thats brilliant!! Works a treat!! Thanks alot!
27th July 2012, 07:03 PM #4
- Rep Power
No Problem. Glad to be of service
Originally Posted by DSapseid
By bewlay51 in forum Windows Server 2008
Last Post: 19th September 2013, 09:46 AM
By Chuckster in forum Windows
Last Post: 23rd March 2010, 02:43 PM
By adamf in forum Windows
Last Post: 30th January 2009, 12:32 PM
By MACLURE-E in forum Windows Vista
Last Post: 27th January 2009, 09:31 PM
By tosca925 in forum Windows
Last Post: 16th June 2007, 07:38 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)