for_flr 当前离线
五级士官
$shell=new-object -comobject wscript.shell $word="video" get-childitem *.lnk|%{if($shell.createshortcut($_.fullname).targetpath -match $word){$_.name}}复制代码
TOP
dir *.lnk|?{(new-object -comobject wscript.shell).createshortcut($_.fullname).targetpath -match "video"}复制代码
$shell=new-object -comobject wscript.shell $word="video" get-childitem *.lnk|%{ $dp=$shell.createshortcut($_.fullname).targetpath if($dp -match $word){$_.name+"指向目标:"+$dp}}复制代码