[dba-Tech] Renaming Windows Folders using code

Martin Reid mwp.reid at qub.ac.uk
Thu May 20 09:32:45 CDT 2010


Jon

I imported a load of SharePoint data from a backup and ended up with a folder structure based on site names which are first initial and surname.

eg
mreid
rreid
ereid

I need to loop over that structure and change the folder name to m reid, r reid etc

first letter space then surname

Martin


Martin WP Reid
Information Services
The McClay Library
Queen's University of Belfast
10 College Park
Belfast BT7 1LP
Tel : 02890976174
Email : mwp.reid at qub.ac.uk
Sharepoint Training Portal
________________________________________
From: dba-tech-bounces at databaseadvisors.com [dba-tech-bounces at databaseadvisors.com] On Behalf Of Tydda Jon - Slough [jon.tydda at lonza.com]
Sent: 20 May 2010 15:12
To: Discussion of Hardware and Software issues
Subject: Re: [dba-Tech] Renaming Windows Folders using code

I don't think so, unless you changed your username. Although AFAIK you can't have a space in a username... You could use an underscore, I suppose... M_Reid...


Jon

-----Original Message-----
From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Martin Reid
Sent: 20 May 2010 15:06
To: Discussion of Hardware and Software issues
Subject: [dba-Tech] Renaming Windows Folders using code

IS it possible to rename a set of windows folders e.g.

folder name: mreid

new folder name: M Reid

There are a number of folders in the directory

Martin


Martin WP Reid
Information Services
The McClay Library
Queen's University of Belfast
10 College Park
Belfast BT7 1LP
Tel : 02890976174
Email : mwp.reid at qub.ac.uk
Sharepoint Training Portal
_
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com

This communication and its attachments, if any, may contain confidential and privileged information the use of which by other persons or entities than the intended recipient is prohibited. If you receive this transmission in error, please contact the sender immediately and delete the material from your system.

_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com



More information about the dba-Tech mailing list