title: How can I use spaces in a fully qualified pathname in Powershell?
body: <p>I have a script that copies a number of files from different sources to a single directory for backup. The only step of the script the errors out has a space in both the path and file names: <code>\\server\Network Shares\Transfer\tu3\tu3 Code.mdb</code></p>
  
  <p>I get the error <code>copy-item : Cannot find path '\\server\Network Shares\Transfer\tu3\tu3 Code.mdb' because it does not exist.</code> and I'm <strong>assuming</strong> it's because of the spaces in either the path or filename. Does PowerShell allow spaces in a fully qualified path? If not, how can I get at the file?</p>
  
  <p>Here's the relevant code (My<code>$Dest</code>is defined as a global variable for the script):</p>
  
  <pre><code> $TU3CodeUpdatedPathname = "\\server\Network Shares\Transfer\tu3\"
   $TU3CodeUpdatedFilename = "tu3 Code.mdb"
   $TU3CodeUpdated         = $TU3CodeUpdatedPathname + $TU3CodeUpdatedFilename
   #
   $Source = $TU3CodeUpdated
   $Dest   = $VMShareSpacePathname
   #
   copy-item $Source $Dest
  </code></pre>