Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / April 2005



Tip: Looking for answers? Try searching our database.

renaming directories from delimited text file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bailey D. Williams - 29 Apr 2005 13:36 GMT
I have a situation where I have several directories which contain several
subdirectories that I need to automatedly batch rename.  The "roadmap" as
it were which contains the before and after indications for the directories
is contained in a comma-delimited text file.  For example:

A directory may contain something similar to:

D00001
D00002
D00003
D00004
D00005

where D00001 through D00005 are directory names.  The text file, for
example, would look like the following:

D00001,F12345
D00002,F23677
D00003,F87102
D00004,F79013
D00005,F43016

The goal is to be able to cause some kind of automated batch process where
the contents of the text file will be used to perform actual renaming of
the directory names.  The directory named D00001 would become F12345; the
directory named D00002 would become F23677, and so on.  

Is there an easy way in VB to perform this?  I'm not exactly fluent in file
manipulation.

Thanks for your help,
Bailey
Olof Lagerkvist - 29 Apr 2005 15:23 GMT
I have answered in comp.os.ms-windows.programmer.misc. If you want to
post questions in more than one group, please specify all groups when
you post your message (called crossposting) so that the answers are
visible in all groups. Otherwise people may take time to answer when
someone else already has answered the question in another group.

Signature

Olof Lagerkvist           sm6xmk
ICQ: 724451                     @ssa.se
Web: http://here.is/olof

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.