How to rename jpg files in all folders within a main folder?
The jpgs files's name would be the same as the folder that contain them and if there is more than one, they would be renamed adding 1, 2, 3 and so on at the end..
Something like this:
folderA
folderA1.jpg
folderA2.jpg
folderB
folderB1.jpg
folderB2.jpg
windows-10 window rename photos
add a comment |
The jpgs files's name would be the same as the folder that contain them and if there is more than one, they would be renamed adding 1, 2, 3 and so on at the end..
Something like this:
folderA
folderA1.jpg
folderA2.jpg
folderB
folderB1.jpg
folderB2.jpg
windows-10 window rename photos
You can do this incmd
with nestedfor
statements: the outer with/d /r
to scan the directories, and the inner to scan the files in each directory. You will need to useset /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?
– AFH
Dec 19 '18 at 16:54
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
1
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14
add a comment |
The jpgs files's name would be the same as the folder that contain them and if there is more than one, they would be renamed adding 1, 2, 3 and so on at the end..
Something like this:
folderA
folderA1.jpg
folderA2.jpg
folderB
folderB1.jpg
folderB2.jpg
windows-10 window rename photos
The jpgs files's name would be the same as the folder that contain them and if there is more than one, they would be renamed adding 1, 2, 3 and so on at the end..
Something like this:
folderA
folderA1.jpg
folderA2.jpg
folderB
folderB1.jpg
folderB2.jpg
windows-10 window rename photos
windows-10 window rename photos
edited Dec 19 '18 at 16:31
AFH
13.9k31938
13.9k31938
asked Dec 19 '18 at 16:29
Alvaro Morales
61
61
You can do this incmd
with nestedfor
statements: the outer with/d /r
to scan the directories, and the inner to scan the files in each directory. You will need to useset /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?
– AFH
Dec 19 '18 at 16:54
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
1
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14
add a comment |
You can do this incmd
with nestedfor
statements: the outer with/d /r
to scan the directories, and the inner to scan the files in each directory. You will need to useset /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?
– AFH
Dec 19 '18 at 16:54
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
1
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14
You can do this in
cmd
with nested for
statements: the outer with /d /r
to scan the directories, and the inner to scan the files in each directory. You will need to use set /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?– AFH
Dec 19 '18 at 16:54
You can do this in
cmd
with nested for
statements: the outer with /d /r
to scan the directories, and the inner to scan the files in each directory. You will need to use set /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?– AFH
Dec 19 '18 at 16:54
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
1
1
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14
add a comment |
1 Answer
1
active
oldest
votes
Seems like you're looking to do this without writing a script yourself? If you don't mind downloading and using a 3rd party tool, here are some options:
https://github.com/andrewning/sortphotos <- this is what I use, but there's a learning curve- https://www.advancedrenamer.com/
- https://lifehacker.com/organize-your-photos-with-this-windows-app-1830383368
http://lmgtfy.com/?q=tool+to+rename+photos :-)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385969%2fhow-to-rename-jpg-files-in-all-folders-within-a-main-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Seems like you're looking to do this without writing a script yourself? If you don't mind downloading and using a 3rd party tool, here are some options:
https://github.com/andrewning/sortphotos <- this is what I use, but there's a learning curve- https://www.advancedrenamer.com/
- https://lifehacker.com/organize-your-photos-with-this-windows-app-1830383368
http://lmgtfy.com/?q=tool+to+rename+photos :-)
add a comment |
Seems like you're looking to do this without writing a script yourself? If you don't mind downloading and using a 3rd party tool, here are some options:
https://github.com/andrewning/sortphotos <- this is what I use, but there's a learning curve- https://www.advancedrenamer.com/
- https://lifehacker.com/organize-your-photos-with-this-windows-app-1830383368
http://lmgtfy.com/?q=tool+to+rename+photos :-)
add a comment |
Seems like you're looking to do this without writing a script yourself? If you don't mind downloading and using a 3rd party tool, here are some options:
https://github.com/andrewning/sortphotos <- this is what I use, but there's a learning curve- https://www.advancedrenamer.com/
- https://lifehacker.com/organize-your-photos-with-this-windows-app-1830383368
http://lmgtfy.com/?q=tool+to+rename+photos :-)
Seems like you're looking to do this without writing a script yourself? If you don't mind downloading and using a 3rd party tool, here are some options:
https://github.com/andrewning/sortphotos <- this is what I use, but there's a learning curve- https://www.advancedrenamer.com/
- https://lifehacker.com/organize-your-photos-with-this-windows-app-1830383368
http://lmgtfy.com/?q=tool+to+rename+photos :-)
answered Dec 19 '18 at 19:24
Ian McGowan
1834
1834
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385969%2fhow-to-rename-jpg-files-in-all-folders-within-a-main-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can do this in
cmd
with nestedfor
statements: the outer with/d /r
to scan the directories, and the inner to scan the files in each directory. You will need to useset /a
in the inner loop to increment a variable initialised in the outer loop. Have you tried any of this?– AFH
Dec 19 '18 at 16:54
I've never done any of this :c
– Alvaro Morales
Dec 19 '18 at 17:20
1
I suggest you read up on it. We are not a script-writing service: what we do is help with difficulties encountered when writing scripts, but we can't do that if you haven't made any attempt yourself. This is a good reference site with examples, though it's not intended for tuition..
– AFH
Dec 19 '18 at 17:35
Rather than CMD, I'd encourage you pick up PowerShell. If you need someone to write a script for you, check out Fiverr.com where you can get custom work for relatively cheap.
– duct_tape_coder
Dec 19 '18 at 22:14