PC Review


Reply
Thread Tools Rate Thread

changing file estensions

 
 
=?Utf-8?B?R2VsYXRvam9l?=
Guest
Posts: n/a
 
      25th Nov 2006
I have lots of files that I want to add an extension to. Rather than add an
extension to each individual file, is there a was to add extensions to a
large number of files at the same time?
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Nov 2006

"Gelatojoe" <(E-Mail Removed)> wrote in message
news:CFE8C131-E6A6-4968-A95F-(E-Mail Removed)...
> I have lots of files that I want to add an extension to. Rather than add

an
> extension to each individual file, is there a was to add extensions to a
> large number of files at the same time?


Here is how you can do it. The method assumes that none
of the files in the chose folder have an extension.

1. Click Start / Run / cmd {OK}
2.. Type these commands:
cd /d "%SystemRoot% {Enter}
notepad extension.bat {Enter}
3. Enter these lines:
@echo off
dir /b /a-d > c:\dir.txt
for /F %%a in (c:\dir.txt) do echo ren "%%a" "%%a.xxx"
(replace xxx with the desired extension)
4. Save the file but do not close it.
5. Type these commands:
cd /d "Q:\Some folder\Some Subfolder"{Enter}
(replace Q: with the drive letter for your folder
and use the correct folder and subfolder names)
extension.bat{Enter}

The last command shows you what ***would*** happen if
you activated the batch file you just wrote. To activate it, make
the last line like so:
for /F %%a in (c:\dir.txt) do ren "%%a" "%%a.xxx"
then run it again by typing extension.bat {Enter} at the Command
Prompt.

To rename files in other folders, simply run Steps 1 and 5.

Warning: Do not run this batch file more than once. If you run
it twice then you will get two extensions, and three if you run
it three times . . .


 
Reply With Quote
 
Donald Lessau
Guest
Posts: n/a
 
      25th Nov 2006
"Gelatojoe" <(E-Mail Removed)> schrieb im Newsbeitrag
news:CFE8C131-E6A6-4968-A95F-(E-Mail Removed)...
>I have lots of files that I want to add an extension to. Rather than add
>an
> extension to each individual file, is there a was to add extensions to a
> large number of files at the same time?


XYplorer (shareware file manager, 30-day free trial) makes it easy: use
command "Set Extension..." to add an extension (or change an existing
extension) to any number of files in a blink.

http://www.xyplorer.com/

Don

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing an older office file to a readable Vista file? deedeewa Microsoft Word Document Management 4 25th Jul 2009 05:36 AM
changing window media audio file to wave file =?Utf-8?B?c3ZpYmU=?= Windows XP Help 1 9th Mar 2005 03:17 PM
Changing a .MOV file into a Windows Movie Maker compatible file? =?Utf-8?B?Y2hyaXN0aW5h?= Windows XP MovieMaker 1 21st Mar 2004 05:36 AM
File download box will not open, even after changing options in File Types window =?Utf-8?B?TWlzdGVyIEI=?= Windows XP Internet Explorer 1 16th Mar 2004 01:41 AM
Open delimited text file to excel without changing data in that file zohanc Microsoft Excel Programming 1 3rd Oct 2003 01:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:27 PM.