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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply a file extension change to an entire folder? 1

Status
Not open for further replies.

deintinis

IS-IT--Management
Nov 14, 2001
174
US
I have about 300 photos that I need to insert into Access. All the photos are .jpeg's, but Access requires a .bmp. Is there a way to change the file extensions for all of these files at once?
 
Open a command prompt, change to directory containing target files, enter ren *.jpeg *.bmp
 
Well, No if you are intentending to change only the file extension. (which you can do in Explorer, but please read on)

The problem is that .bmp and .jpg are fundamentally different file formats. What you need is a .bmp to .jpg batch conversion program.

There are several, including I believe some you can use under their Trial license, or possibly some freeware ones.

To research what is available, do a Google Web search on the key "bmp to jpg batch file conversion" and I suspect you will quickly find your answer.


 
Note that renaming does not actually make the files BMP formatted, they'll still retain the JPEG format internally.
 
thanks for the response. I don't need to convert the files, because changing the file extension allows the file to be iserted into Access. I found a program called NameWiz that allowed me to manipulate all of the file names at once. I will try the command prompt, sounds a lot easier.
 
Count me dubious.

For file extensions that require a filter driver, such as .bmp and .jpg, just renaming the files seems insufficient.

I never dared try this.

Let us know how it worked for you.
 
Thanks, Freestone, your advice was a great help in a rather similar problem. My difficulty was that I had a load of test output sent to a 'generic printer', which meant that files were created without an extension.

I also didn't know how to get to a director in MS DOS - my history is Mainframes, Apple Mac and Windowns 3.1. For the benefit of those with similar histories, I'll post the whole process:
Code:
	> c:
	> cd my_place
	> ren *.* *.txt
Note that this changes every file in the directory called my_place that was on my C drive. To be more selective, you'd need something like Freestone's ren *.jpeg *.bmp

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top