Skip to content

Commit f4072d3

Browse files
committed
Add code for 24+ hour uptime to copy pictures
1 parent edeb74f commit f4072d3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SaveWin10Pictures/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ private static void Main()
104104
// StartProcess("Explorer.exe", imagePath, true, false);
105105
//}
106106

107+
108+
// keeps running for pc up all the time until Q key is pressed
109+
while (true)
110+
{
111+
Console.ForegroundColor = ConsoleColor.Yellow;
112+
display("Press q to quit or let it run forever:");
113+
// Console.ReadKey();
114+
if (Console.ReadKey() == ConsoleKeyInfo)
115+
{
116+
117+
}
118+
}
119+
107120
Console.ForegroundColor = ConsoleColor.Yellow;
108121
display("Press any key to exit:");
109122
Console.ReadKey(); // comment for batch to production

0 commit comments

Comments
 (0)