Skip to content

Commit 0350116

Browse files
committed
Add explorer start on target directory
1 parent c2e7c06 commit 0350116

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SaveWin10Pictures/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static void Main()
107107

108108

109109
// keeps running for pc up all the time until Q key is pressed
110-
110+
111111
ConsoleKeyInfo consoleKeyPressed;
112112
DateTime timeToCheck = DateTime.Now;
113113
do
@@ -132,7 +132,14 @@ private static void Main()
132132

133133
if (consoleKeyPressed.ToString() == "T")
134134
{
135-
string targetDirectory = "";
135+
string targetDirectory = myPicturesFolder;
136+
if (Directory.Exists($@"{myPicturesFolder}\fond_ecran"))
137+
{
138+
targetDirectory = $@"{myPicturesFolder}\fond_ecran";
139+
}
140+
141+
// process start explorer
142+
136143
}
137144

138145
} while (consoleKeyPressed.Key != ConsoleKey.Q);

0 commit comments

Comments
 (0)