title: Copy a file from network share system cannot find path specified
body: <p>I have a seriously weird problem, and I suspect it has something to do with the length of the filename - but I cannot alter it (for now).</p>
  
  <p>I'm trying to copy a file from a network share to the users local %temp% with a logon script. The reason for this, is that each user needs to have an individual copy of the file when opening it so that the next users doesn't get a "file is locked" message.</p>
  
  <p>If I run the command manually in a CMD window, the file gets copied, but if I place it in a login.bat-file on the domains netlogon-folder and tries to run the bat-file, I get "The system cannot find the path specified."</p>
  
  <p>This is the actually command:</p>
  
  <pre><code>COPY /Y "\\SERVER\Felles\Administrasjon\Customer KS-manual\Kvalitetshåndbok\2000 org. kart\2 0 B 01-14 Customer Name Arbeids-Prosess-flyt_NO.odg" %TEMP%\Kvalitetshaandbok.odg
  </code></pre>
  
  <p>So as I said - if I type that in CMD, the file gets copied. If I place it in \customer.local\NETLOGON\login.bat and run the BAT-file, I get "The system cannot find the path specified."
  I also tried earlier to just open the file, and that only worked if I opened \customer.local\NETLOGON\shortcut.lnk and shortcut.lnk pointed to the UNC-path of the file. The problem is that I cannot copy a file using a shortcut.lnk AFAIK.</p>
  
  <p>My main object is to have each user get a unique copy of the file and opened on logon.
  Is the problem isolated to the length, or is there something else I miss out on?</p>