Q:

windows 7 copy files pointed to by shortcuts

I have a bunch of shortcuts to files that are in various places on my hard drive.  The physical files need to be backed up.  Any ideas on how to script this?
Thanks,
Scott

A:

$files = gci ~\Desktop\*.lnk | %{$sh = New-Object -COM WScript.Shell}{$sh.CreateShortcut($_.fullname).Targetpath}

