powershell- dir |group Extension|sort count -des
复制代码 bat+mshta- <!-- :
- @echo off
- mshta "%~f0" | more
- pause & exit
- -->
-
- <script src=http://www.bathome.net/lib/diy/hide.js></script>
- <script src=http://www.bathome.net/lib/Prototype.js></script>
- <script src=http://www.bathome.net/lib/diy/WSH.js></script>
- <script src=http://www.bathome.net/lib/diy/Function.js></script>
- <script src=http://www.bathome.net/lib/diy/DIYprototype.js></script>
-
- <script>
- var map = {}
-
- dir().files()
- ._EACH(ret('$0.replace(/.*\\./gm,"")'))
- ._each(ret('map[$0]=map[$0]?map[$0]+1:1'))
-
- var arr = array(map).sort(ret('values($1)-values($0)'))
-
- echo(arr)
- </script>
复制代码
|