本帖最后由 zaqmlp 于 2019-11-23 18:43 编辑
- /*&cls
- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- set "oldfolder=D:\xxx\源目录"
- set "newfolder=D:\xxx\新目录"
- set vdpi=300
- if not exist "%oldfolder%\" (echo;"%oldfolder%" not found&goto end)
- if not exist "%newfolder%\" md "%newfolder%\"
- cd /d "%oldfolder%\"
- for /f "delims=" %%a in ('dir /a-d/b/s *.tif^|cscript -nologo -e:jscript "%~f0" %vdpi%') do (
- echo;"%%a"
- move /y "%%a" "%newfolder%\"
- )
- :end
- echo;%info%
- pause
- exit
- */
-
- var fso=new ActiveXObject('Scripting.FileSystemObject');
- var sa=new ActiveXObject('Shell.Application');
- var v=0,objFolder=sa.NameSpace(0);
- for(var i=0; i<350; i++){if(/^垂直分[辨辩]率/.test(objFolder.GetDetailsOf(null, i))){v=i;}}
-
- while(!WSH.StdIn.AtEndOfStream){
- var f=fso.GetFile(WSH.StdIn.ReadLine());
- var objFolder=sa.Namespace(f.ParentFolder.Path);
- var objItem=objFolder.ParseName(f.Name);
- var vdpi=objFolder.GetDetailsOf(objItem, v).replace(/\D/g,'');
- if(vdpi==Number(WSH.Arguments(0))){WSH.echo(f.Path);}
- }
复制代码
|