Windows 8 and 8.1 Forums

How do I accomplish renaming indexed files to its below ?

  1. #1

    How do I accomplish renaming indexed files to its below ?

    How do I accomplish renaming bulky indexed files to its smaller index number, with any kind of tools ?
    That is to rename

    1.c -> 0.c
    2.c -> 1.c
    7.c -> 6.c
    8.c -> 7.c
    9.c -> 8.c
    (in large numbers of files.) Thank so much in advance

      My System SpecsSystem Spec

  2. #2

    I'd solve and answer mine. on Windows cmd.exe console:

    cmd /v /k
    for /f %x in ('dir /b ??.c') do (set/a t=%~nx-1 &ren %x !t!.c)

    rename to greater number; dir in reversed and +1, i.e. use:

    dir /b /o-n
    t =%~nx+1

    Much better is to get TCC/LE more improved and sensible cmd.exe duplicate
      My System SpecsSystem Spec

How do I accomplish renaming indexed files to its below ?
Related Threads
I have been noticing randomly delay or lag in my Windows Explorer whenever I do operations such as create new folder or files, copy/paste files, or rename files. By lag, what I mean is that lets say I rename a file from "File A" to File B", I don't see the change in the file name...
file renaming help? in General Support
i have a bunch of directories, each one contains exactly 1 jpg file, What I would like to do is to rename all the files cover.jpg, but when I do search on *.jpg and try to rename, it renames every file to cover(1).jpg Is there a way I can rename the files without tedious folder-by-folder...
Renaming Shenanigans in General Support
Here we go again, another issue that shouldn't even be possible. If you have multiple video or image files in a folder and they have different formats, i.e wmv mov mpg try to rename them all to one name. Guess what... a huge jumbled mess. A whole bunch of files with the same name. Why would...
Hey all! I am trying to use this stupid Xbox Music app to play my music which is stored on my D drive. However, after my adding the music folder to the music library. The collection doesn't populate with my music. I tried checking the properties of the folder to index. Didn't work. I then found...
I can't open .EXE files in Windows 8.1 Pro without renaming the file to .exe The exe file downloads as _exe and not as .exe I thought I had malware so did a clean install of Win 8.1 Pro to 8 Pro and updated back to win 8.1 Pro did not help but for a short time period...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook