Windows: rename each file an incrementing integerLinux rename using parameters and spaces?Windows 7 can not...

How would an AI self awareness kill switch work?

Using loops to create tables

Can a hotel cancel a confirmed reservation?

Do authors have to be politically correct in article-writing?

How can I deal with a significant flaw I found in my previous supervisor’s paper?

What are the advantages of using `make` for small projects?

En Passant For Beginners

How to generate a matrix with certain conditions

Can pricing be copyrighted?

Could flying insects re-enter the Earth's atmosphere from space without burning up?

What is the etymology of the kanji 食?

Why did the villain in the first Men in Black movie care about Earth's Cockroaches?

The vanishing of sum of coefficients: symmetric polynomials

Manipulating a general length function

Quenching swords in dragon blood; why?

How would one buy a used TIE Fighter or X-Wing?

Everyone is beautiful

Overfitting and Underfitting

How do you funnel food off a cutting board?

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

1 0 1 0 1 0 1 0 1 0 1

Closed form for these polynomials?

Is there a better way to make this?

Explain the objections to these measures against human trafficking



Windows: rename each file an incrementing integer


Linux rename using parameters and spaces?Windows 7 can not rename a file to 'aux.svg': “The specified device name is invalid”Rename file in XP, only select file name, but show file extensionRename sets of files based on sizeRename images so they burn to CD in orderbatch-rename filenames with numbers to sort alphabeticallyCannot rename file with tildeHow to rename files with versions numbers in Windows 10?Windows batch, How to rename a directory to date and time with secondsWindows 10 File Sorting













0















I have a directory of mp3 files, sorted in order of Date created:



newest.mp3
new.mp3
old.mp3
older.mp3
oldest.mp3


I want to rename each file in this directory with a new name including an integer value that increases for each file (starting at the newest file):



newest.mp3 --> new_name_1.mp3
new.mp3 --> new_name_2.mp3
old.mp3 --> new_name_3.mp3
older.mp3 --> new_name_4.mp3
oldest.mp3 --> new_name_5.mp3


How can I do this automatically (without needing to manually rename each file)?










share|improve this question

























  • Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

    – shawn
    8 mins ago











  • No. I haven't done scripting / programming on windows before

    – user9506231
    4 mins ago
















0















I have a directory of mp3 files, sorted in order of Date created:



newest.mp3
new.mp3
old.mp3
older.mp3
oldest.mp3


I want to rename each file in this directory with a new name including an integer value that increases for each file (starting at the newest file):



newest.mp3 --> new_name_1.mp3
new.mp3 --> new_name_2.mp3
old.mp3 --> new_name_3.mp3
older.mp3 --> new_name_4.mp3
oldest.mp3 --> new_name_5.mp3


How can I do this automatically (without needing to manually rename each file)?










share|improve this question

























  • Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

    – shawn
    8 mins ago











  • No. I haven't done scripting / programming on windows before

    – user9506231
    4 mins ago














0












0








0








I have a directory of mp3 files, sorted in order of Date created:



newest.mp3
new.mp3
old.mp3
older.mp3
oldest.mp3


I want to rename each file in this directory with a new name including an integer value that increases for each file (starting at the newest file):



newest.mp3 --> new_name_1.mp3
new.mp3 --> new_name_2.mp3
old.mp3 --> new_name_3.mp3
older.mp3 --> new_name_4.mp3
oldest.mp3 --> new_name_5.mp3


How can I do this automatically (without needing to manually rename each file)?










share|improve this question
















I have a directory of mp3 files, sorted in order of Date created:



newest.mp3
new.mp3
old.mp3
older.mp3
oldest.mp3


I want to rename each file in this directory with a new name including an integer value that increases for each file (starting at the newest file):



newest.mp3 --> new_name_1.mp3
new.mp3 --> new_name_2.mp3
old.mp3 --> new_name_3.mp3
older.mp3 --> new_name_4.mp3
oldest.mp3 --> new_name_5.mp3


How can I do this automatically (without needing to manually rename each file)?







windows windows-10 file-management rename filenames






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 mins ago







user9506231

















asked 27 mins ago









user9506231user9506231

183




183













  • Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

    – shawn
    8 mins ago











  • No. I haven't done scripting / programming on windows before

    – user9506231
    4 mins ago



















  • Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

    – shawn
    8 mins ago











  • No. I haven't done scripting / programming on windows before

    – user9506231
    4 mins ago

















Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

– shawn
8 mins ago





Have you tried a batch looping with for on dir /od using an incrementing counter via set /a?

– shawn
8 mins ago













No. I haven't done scripting / programming on windows before

– user9506231
4 mins ago





No. I haven't done scripting / programming on windows before

– user9506231
4 mins ago










0






active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410829%2fwindows-rename-each-file-an-incrementing-integer%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410829%2fwindows-rename-each-file-an-incrementing-integer%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...