- 1>1/* :
- @echo off
- cscript -nologo -e:jscript "%~f0"
- pause & exit/b
- */
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var i = j = 0;
- var z = '';
- var str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
- var arr1 = str.split('');
- for (var a=0;a<arr1.length;a++){
- var arr2 = str.replace(arr1[a],'').split('');
- for (var b=0;b<arr2.length;b++){
- var arr3 = str.replace(arr2[b],'').split('');
- for (var c=0;c<arr3.length;c++){
- var arr4 = str.replace(arr3[c],'').split('');
- for (var d=0;d<arr4.length;d++){
- var arr5 = str.replace(arr4[d],'').split('');
- for (var e=0;e<arr5.length;e++){
- var arr6 = str.replace(arr5[e],'').split('');
- for (var f=0;f<arr6.length;f++){
- var arr7 = str.replace(arr6[f],'').split('');
- for (var g=0;g<arr7.length;g++){
- var arr8 = str.replace(arr7[g],'').split('');
- for (var h=0;h<arr8.length;h++){
- var s = arr1[a]+arr2[b]+arr3[c]+arr4[d]+arr5[e]+arr6[f]+arr7[g]+arr8[h];
- i++;
- z = z + s + '\r\n';
- //每一百万条数据生成一个文本
- if (i==1000000){
- i = 0;
- j++;
- fso.CreateTextFile(j+'.txt',2).WriteLine(z);
- z = '';
- }
- }
- }
- }
- }
- }
- }
- }
- }
复制代码
|