Note that there are some explanatory texts on larger screens.

plurals
  1. POBatch script to copy symbolic links as is but not overwrite source if already exist
    text
    copied!<p>I've tried Fastcopy and Robocopy and both seem to be able to do either one of those operation but not both.</p> <p>For files like (BEFORE COPYING)</p> <pre><code>D:\SYMLINKSOURCE\file1 &lt;&lt;symlink from D:\Source\file1 **edit D:\SYMLINKSOURCE\file2 &lt;&lt;symlink from D:\Source\file1 **edit D:\DESTINATIONxx\file2 &lt;&lt;not a symlink </code></pre> <p>I want to copy <code>D:\SYMLINKSOURCE\*</code> to <code>D:\DESTINATIONxx</code> but without overwriting <code>D:\DESTINATIONxx\file1</code> such that after copying it looks like</p> <pre><code>(AFTER COPYING) D:\SYMLINKSOURCE\file1 &lt;&lt;symlink from D:\Source\file1 D:\SYMLINKSOURCE\file2 &lt;&lt;symlink from D:\Source\file2 D:\DESTINATIONxx\file1 &lt;&lt;symlink from D:\Source\file1 D:\DESTINATIONxx\file2 &lt;&lt;not a symlink </code></pre> <p>I tried this to not overwrite but it doesn't preserve Symbolic links and instead copies resolved files <a href="https://stackoverflow.com/questions/4228807/copy-files-w-o-overwrite">Copy files without overwrite</a></p> <pre><code>robocopy "D:\SYMLINKSOURCE" "D:\DESTINATION" /E /XC /XN /XO (AFTER COPYING) D:\SYMLINKSOURCE\file1 &lt;&lt;symlink from D:\Source\file1 D:\SYMLINKSOURCE\file2 &lt;&lt;symlink from D:\Source\file2 D:\DESTINATIONxx\file1 &lt;&lt;not a symlink &lt; i wanted this as symlink D:\DESTINATIONxx\file2 &lt;&lt;not a symlink </code></pre> <p>and adding /SL to preserve symlinks overwrites everything.</p> <pre><code>robocopy "D:\SYMLINKSOURCE" "D:\DESTINATION" /E /XC /XN /XO /SL (AFTER COPYING) D:\SYMLINKSOURCE\file1 &lt;&lt;symlink from D:\Source\file1 D:\SYMLINKSOURCE\file2 &lt;&lt;symlink from D:\Source\file2 D:\DESTINATIONxx\file1 &lt;&lt;symlink from D:\Source\file1 D:\DESTINATIONxx\file2 &lt;&lt;symlink from D:\Source\file1 &lt; i did not want this overwritten </code></pre> <p>Is there any way I can achieve what I want?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload