5i365 (我心飞扬)当前离线
上尉
dir -path "C:\Users\Administrator\Desktop\*.lnk" -File | ForEach-Object { $_.Target -contains "video" }复制代码
TOP
dir -path "C:\Users\Administrator\Desktop\*.lnk" -File | ForEach-Object { #$_.FullName ((New-Object -ComObject WScript.shell).CreateShortcut($_.FullName)).TargetPath -contains "video" }复制代码
dir -path "C:\Users\Administrator\Desktop\*.lnk" -File | ForEach-Object { ((New-Object -ComObject WScript.shell).CreateShortcut($_.FullName)).TargetPath | Select-String -Pattern 'video' }复制代码
for_flr 当前离线
五级士官
$shell=new-object -comobject wscript.shell $word="video" get-childitem *.lnk|%{if($shell.createshortcut($_.fullname).targetpath -match $word){$_.name}}复制代码
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}}复制代码
$shell=new-object -comobject wscript.shell $word="video" get-childitem *.lnk|foreach{ $dp=$shell.createshortcut($_.fullname).targetpath if($dp -match $word){$dp}}复制代码