We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56cae4 commit 93fd88aCopy full SHA for 93fd88a
1 file changed
SaveWin10Pictures/Program.cs
@@ -14,7 +14,8 @@ private static void Main()
14
List<string> files = new List<string>();
15
int counter = 0;
16
//string OSVersion = Environment.OSVersion.ToString(); // 6.2 ON Win 10
17
- string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
+ //string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
18
+ string userName = Environment.UserName;
19
// remove domain if any
20
if (userName.Contains("\\"))
21
{
0 commit comments