We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5048015 commit 8d19ae0Copy full SHA for 8d19ae0
1 file changed
SaveWin10Pictures/Program.cs
@@ -13,7 +13,7 @@ private static void Main()
13
display("Checking if there are new images to be copied...");
14
List<string> files = new List<string>();
15
int counter = 0;
16
- const string userName = "user";
+ string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
17
string imagePath = $@"C:\Users\{userName}\Pictures";
18
if (Directory.Exists($@"C:\Users\{userName}\Pictures\fond_ecran"))
19
{
0 commit comments