I am trying to perform a Robocopy of a file. The command I'm using (below) works when the "filename" variable does not contain spaces. How can I write this command to ignore spaces in this variable?
System.Diagnostics.Process.Start("robocopy.exe",
$@"X: ""C:\users\username\desktop\test"" {filename}").WaitForExit();
Please See my comments below (i.e.; dguth8)