Sponsor Message:
Non Aviation Forum
My Starred Topics | Profile | New Topic | Forum Index | Help | Search 
Windows File Rename Question  
User currently offlineDiamond From United States of America, joined Apr 2004, 3279 posts, RR: 63
Posted (7 years 7 months 3 weeks 3 days ago) and read 1606 times:

I have a question about something that should be simple to do, yet it escapes me.

Let's say I want to rename all the files within a single folder so that they all start with something similar.

Example: I have a folder that contains 426 pictures of Boeing 777's. They are from various sources and the filenames are all different. I would like to rename them so that the current filename is preceded by "B777_".


106875.jpeg becomes B777_106875.jpeg, etc.

I know how to do this in DOS, from the command prompt. But navigating between folders is difficult that way.

Is there any way to do a global file rename using Windows Explorer?


Blank.
5 replies: All unread, jump to last
 
User currently offlineLehpron From United States of America, joined Jul 2001, 7028 posts, RR: 21
Reply 1, posted (7 years 7 months 3 weeks 3 days ago) and read 1598 times:

I almost want to suggest coding a small MATLAB or C++ program to open each file and add the extra text you want and set it up as a loop -- but that is probably not what you were thinking of.  no 


The meaning of life is curiosity; we were put on this planet to explore opportunities.
User currently offlineDiamond From United States of America, joined Apr 2004, 3279 posts, RR: 63
Reply 2, posted (7 years 7 months 3 weeks 3 days ago) and read 1596 times:

Quoting Lehpron (Reply 1):
I almost want to suggest coding a small MATLAB or C++ program to open each file and add the extra text you want and set it up as a loop -- but that is probably not what you were thinking of.

I'm pretty capable as a Windows end-user, but I know nothing about C++.



Blank.
User currently offlineDavestanKSAN From United States of America, joined Sep 2005, 1678 posts, RR: 13
Reply 3, posted (7 years 7 months 3 weeks 3 days ago) and read 1591 times:

Here's what I got when I searched in Windows help

1. Start Windows Explorer. To do so, click Start, point to All Programs, point to Accessories, and then click Windows Explorer.
2. Select multiple files in a folder. To do so, press and hold down the CTRL key while you are clicking files.
3. After you select the files, press F2.
4. Type the new name, and then press ENTER.
NOTE: When you complete the preceding steps, the highlighted state of all files except one disappears, so it may appear as if you are only renaming one file. However, after you press ENTER, all of the files are renamed. When you rename multiple files, all of the renamed files have the same name with a number in parentheses appended to the name to make the new file name unique. For example, if you type BUDGET as the new name, the first file is named BUDGET. All of the remaining selected files are named BUDGET(x), where x is a unique number, starting with (1).

Notes
If you make a mistake when you try to rename multiple files, you can press CTRL+Z, or click Undo Rename on the Edit menu to undo file rename action you just completed, and you can repeat this process as needed.

The Rename function in Windows Explorer does not match the behavior of the REN command you may use at a command prompt. For example, if you had files that are named smitha.doc, smithb.doc, and smithc.doc, you could use the ren smith*.doc smythe*.doc command. All file names automatically show the new spelling, and are renamed smythea.doc, smytheb.doc, and smythec.doc.

If you use the Windows XP Rename function in Windows Explorer, after you select the three "smith" files, and rename smitha.doc to smythea.doc, all the other files you selected are named smythea(x).doc. To return to the original file name structure (the use of a, b, c, etc), you must rename each file individually.

Basically go to the folder, hit Ctrl A, then F2. It will look like only one file is selected but when you change the name of that file and press enter, all of the files will change.

Hope it helps.

Dave

[Edited 2006-12-05 03:39:31]


Yesterday we've sinned, today we move towards God. Touch the sky....love and respect...Safe Star!
User currently offlineJ_Hallgren From United States of America, joined Jun 2000, 1507 posts, RR: 0
Reply 4, posted (7 years 7 months 3 weeks 2 days 23 hours ago) and read 1573 times:

For that type of function, I would simply use IrFanView...as it has a batch rename ability...and it's free...and very handy for dealing with photo files, in terms of viewing, resizing, renaming, etc.


COBOL - Not a dead language yet!
User currently offlineDamirc From Slovenia, joined Feb 2004, 723 posts, RR: 7
Reply 5, posted (7 years 7 months 3 weeks 2 days 22 hours ago) and read 1563 times:

Well, from the command prompt - but still my preferred way of doing things...


for /f "tokens=*" %f in ('dir /b *.jpg') do ren "%f" "b777_%f"


D.


Top Of Page
Forum Index

This topic is archived and can not be replied to any more.

Printer friendly format

Similar topics:More similar topics...
Windows Live Messenger Question posted Mon Sep 4 2006 08:48:07 by Spacemanspiff
Windows Server 2003 Question posted Thu Aug 4 2005 16:42:46 by 102IAHexpress
Windows File Protection posted Fri Nov 12 2004 15:36:21 by Planespotterx
Windows XP Taskbar Question posted Wed Sep 15 2004 23:32:42 by UAL Bagsmasher
FAT32 And Ntfs Computer File Systems Question posted Thu Mar 18 2004 20:13:19 by Lehpron
Question About Updating My Windows posted Mon Oct 16 2006 06:41:00 by STLUAL747
Windows XP Question posted Mon Dec 12 2005 22:29:29 by Lobster
Windows Mobile Question posted Sat Feb 26 2005 23:28:53 by Jfkaua
Windows Media 9 Question... posted Fri Jan 23 2004 20:06:58 by Boeing nut
Dell/Windows XP Question posted Fri Jan 16 2004 02:52:53 by Cba