Android : How to list all files of specific extensions inside a folder with numbering order using batch file

on Sunday, March 22, 2015


My question is, How can I list or print name of files of specific extension ONLY inside a folder using a batch file. Extensions are .apk and .jar


Let me explain with an example, Say a folder name files has four files in it namely "framework-res.apk" "systemui.apk" "game.apk" and "7z.exe" Now I place a bat file there, execute it and want it to return this output on screen



1) "framework-res.apk"

2) "systemui.apk"

3) "game.apk"


Bat should be able to print no matter how many files in it with .apk extension and in serial-wise like stated above (Numbered order) like if it had 3 more apk files it should automatically continue like



4) bla.apk

5) wea.apk


and so on..


and it should not print any other file extension rather than .apk or .jar inside it, like "7z.exe" I have trying my head around this but could not get any logic! Kindly share some ideas/method to do this. I'll be very grateful. I tried explaining the best I could hope you get my point.


0 comments:

Post a Comment