Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How do I accomplish renaming bulky indexed files to its smaller index ?


  • Please log in to reply
1 reply to this topic

#1 abdulbadii

abdulbadii

  • Members
  • 29 posts
  • OFFLINE
  •  
  • Local time:01:41 AM

Posted 02 December 2017 - 04:05 AM

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

1 -> 0

2 -> 1

...

7 -> 6

8 -> 7

9 -> 8
 


BC AdBot (Login to Remove)

 


#2 abdulbadii

abdulbadii
  • Topic Starter

  • Members
  • 29 posts
  • OFFLINE
  •  
  • Local time:01:41 AM

Posted 02 December 2017 - 07:39 AM

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

Edited by abdulbadii, 02 December 2017 - 06:44 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users