I'am writing a program in C#. How to move file without knowing a username? Like C:\Users\ and now there is a username, but I don't know the someones username and how to move it?
var proc2 = new ProcessStartInfo();
proc2.UseShellExecute = true;
proc2.WorkingDirectory = @"C:\Windows\System32";
proc2.FileName = @"C:\Windows\System32\cmd.exe";
proc2.Verb = "runas";
proc2.Arguments = "/c move x.bat C:\Users\HERE";
proc2.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(proc2);