Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Renaming files via C++ ; Is it possible ?

Status
Not open for further replies.

Andycapp

Programmer
Oct 8, 2001
4
0
0
NO
Background:
I'm currently working with scanning images on to tif-files. The only problem is that once I've finished scanning a book, I need to rename each file with the ending "_001". This due to the software which will be processing these images afterwards.

So I thought I might make a c++ program which does this for me since I could save ten minutes on this.

So the basic problem is :

I've already managed to read each file name into a string and there I can manipulate it, but how do I rename the current file with this new filename ?

Any help greatly appreciated !

 
yes, it's possible, search old messages. you can find your answer.
 
You can do this with a simple dos command:

Click on the Start Menu, go MS-DOS prompt then type in

cd (path to your files)
rename *.* *_001.tif

You will probably need to play around with this but that is basicaly what you need to do :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top