This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace Rullo | |
{ | |
class Grid | |
{ | |
private int[,] _data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$files = gci $Env:LocalAppData\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | | |
where Length -gt 1kb | |
if ($files) { | |
$shell = New-Object -ComObject Shell.Application | |
$folder = "$Env:USERPROFILE\Pictures\Spotlight" | |
if (!(Test-Path $folder)) { mkdir $folder } | |
$files | % { | |
$_ | Copy-Item -Destination $folder\$_.jpg | |
Get-Item $folder\$_.jpg | |
} | % { |