File Renaming for a Tired Person

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
platypus
Posts: 8
Joined: 29 Dec 2016 18:27

File Renaming for a Tired Person

#1 Post by platypus » 27 May 2017 20:36

I've mastered many complex apps, but I don't want or need an app that looks like the attached
image. I'd have to slog through several dozen options to accomplish a simple task.

Let's say I've got 100 jpeg images in a folder. I rename the first listed file 1035.jpg. I need an
applet or batch file that will follow my lead and rename the other 99 files 1036.jpg, 1037.jpg,
1038.jpg, etc.

That's all I want to do. Isn't there something simple that will do the job, or must I download a
renaming app with a zillion options?
Attachments
Typical Renaming Utility.jpg
Typical Renaming Utility.jpg (92.2 KiB) Viewed 5273 times

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: File Renaming for a Tired Person

#2 Post by ShadowThief » 27 May 2017 20:45

How does it know the order of the images? What are the images currently named?

Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: File Renaming for a Tired Person

#3 Post by Aacini » 28 May 2017 02:30

Your question is incomplete. There are several points that are not correctly specified.

The Batch file below rename all files in current folder with the extension given by first parameter, into a series of numeric files starting with the number given in second parameter:

Code: Select all

@echo off
setlocal EnableDelayedExpansion

set "num=%2"
for /F "delims=" %%a in ('dir /B /A:-D %1') do (
   ren "%%a" "!num!%%~Xa"
   set /A num+=1
)

For example, if you call "renNum.bat" this Batch file, you may use it in this way:

Code: Select all

renNum *.jpg 1035

If this is not what you want, I suggest you to carefully read the very first sticky topic in this forum.

Antonio

platypus
Posts: 8
Joined: 29 Dec 2016 18:27

Re: File Renaming for a Tired Person

#4 Post by platypus » 28 May 2017 20:21

I really was very tired when I posted. I apologize for not providing more info about these
image files.

For many years I created scripts that automated repetitive processes for my business. I'm
an advanced computer user with a batch renaming phobia! I'm not kidding. There are certain
computer tasks I've always avoided. File renaming jobs are given to a business partner or
employee.

My sister gave me a huge pile of disorganized images. They are all about family and friends,
so they are definitely not business related. If you google something like "simple basic file
renaming apps" the same two or three always appear at the top of the list. The reviews say,
"very good" or "excellent" help file. When I have the time, I'll download one of these apps.


Post Reply