Skip to content

Commit 75f6042

Browse files
committed
fix some bugs
1 parent bc9c965 commit 75f6042

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SaveWin10Pictures/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ internal class Program
99
private static void Main()
1010
{
1111
Action<string> display = Console.WriteLine;
12+
display("Checking if there are new images to be copied...");
1213
List<string> files = new List<string>();
1314
int counter = 0;
14-
const string userName = "userName";
15+
const string userName = "user";
1516
string imagePath = $@"C:\Users\{userName}\Pictures\fond_ecran";
1617
foreach (string file in GetFilesFileteredBySize(new DirectoryInfo($@"C:\Users\{userName}\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"), 100000))
1718
{
@@ -36,7 +37,7 @@ private static void Main()
3637

3738
display($"{counter} images have been copied to the picture folder.");
3839
display("Press any key to exit:");
39-
Console.ReadKey();
40+
//Console.ReadKey(); // comment for batch to production
4041
}
4142

4243
public static List<string> GetFilesFileteredBySize(DirectoryInfo directoryInfo, long sizeGreaterOrEqualTo)

0 commit comments

Comments
 (0)