FileName

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've designed a windows forms application that copies the following files
from a cd into a sub folder called Images of the application startup
directory. However the files are called in the following format:
00007765.001
00007765.002
00007765.003
00007765.004
00007765.005

Question: I need to scan the images directory, find the common filenames as
displayed above and then programmatically rename them as follows:
000077651.Tif
000077652.Tif
000077653.Tif
000077654.Tif
000077655.Tif

Any ideas for Visual Studio 2005?
 
Use the system.IO.File.Move method. It is also useful for renaming files.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
Back
Top