title: C# variables inside of quotes
body: <p>With string interpolation, how do you handle variables piped into a command that contain spaces in them? For example, if you have a variable that has spaces in it (like a UNC path), how do you handle that? </p>
  
  <p>This code works when no spaces are present in the "filePath" variable (i.e.; \ServerName\testfile.txt):</p>
  
  <p>Ex: System.Diagnostics.Process.Start("net.exe", $"use X: \\{filePath} {pwd /USER:{usr}").WaitForExit();</p>
  
  <p>As soon as you encounter a path that has spaces in it, however, the command above no longer works, because it's unable to find the path. Normally, I would apply quotes around a path containing spaces, to counter this (in other languages like PowerShell). How do you do something similar with C# interpolation.</p>