title: xcopy does not create directory structure
body: <p>I have a strange problem with xcopy in Windows XP Professional. I don't know if its a stupid question as I am specifying only a file as the source, so should I even expect any other behavior ? This is it:</p>
  
  <p>I am using <code>xcopy &lt;src&gt; &lt;dest&gt; /s/y</code>. </p>
  
  <p><code>&lt;src&gt;=C:\sourcefolder\a\b\c\d\something.java</code> and </p>
  
  <p><code>&lt;dest&gt;=C:\destinationfolder</code>. </p>
  
  <p>Now <code>xcopy</code> copies the file but does not create the directory structure <code>\a\b\c\d\</code> inside <code>C:\destinationfolder</code>  . </p>
  
  <p>what I want is <code>C:\destinationfolder\a\b\c\d\something.java</code> and </p>
  
  <p>what I get is <code>C:\destinationfolder\something.java</code></p>
  
  <hr>
  
  <ol>
  <li>I have tried to run it in destination folder <code>C:\destinationfolder</code> by specifying a <code>.</code> for target folder</li>
  <li>Tried it without any target in above</li>
  </ol>
  
  <p>There is a script I have which calls <code>xcopy</code> iteratively so I am left with <code>C:\destinationfolder\many java files</code> without any directory structure.</p>
  
  <p>A. Yes I have done <code>xcopy /?</code> to see all options</p>
  
  <p>B. <code>/T</code> also does not create any empty directory structure</p>
  
  <p>C. I can not go to source folder <code>a\b\c\d\</code> and run <code>xcopy . &lt;dest&gt;</code></p>