Windows 10: Windows Accessories - Using Xcopy breaks folder symbolic link

Discus and support Windows Accessories - Using Xcopy breaks folder symbolic link in Windows 10 Support to solve the problem; Hi Guys I'm using XCOPY to move some icons into the 'Windows Accessories' folder. The 'Windows Accessories' folder true file location is:... Discussion in 'Windows 10 Support' started by AGTDenton, Aug 30, 2018.

  1. AGTDenton Win User

    Windows Accessories - Using Xcopy breaks folder symbolic link


    Hi Guys

    I'm using XCOPY to move some icons into the 'Windows Accessories' folder.
    The 'Windows Accessories' folder true file location is:
    C:\Users\UserXYZ\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories
    AND
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories

    When this folder is viewed in the Start Menu and Windows Explorer, the title of the folder is 'Windows Accessories'. When I use XCOPY to move some icons to the true location, it somehow breaks the folder symbolic link. It then displays as 'Accessories' on the Start Menu & Windows Explorer which is its true location.

    The problem this then causes is that while you can see 'Accessories' on the start menu, because the way in which the Windows 10 start menu works, it also sees the ProgramData Windows Accessories folder and puts the start menu into a tail spin and the 'Accessories' folder does not work.

    My advice is that you try to do this yourself on a test system to see its effects to better understand what's going on.

    How could I use XCOPY to not break the symbolic link, or do I just recreate the symbolic link after doing an XCOPY?
    Or is there an alternate to XCOPY I can use that doesn't break symbolic links?

    Here is my XCOPY command as a basic example:
    Code: XCOPY "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories" "C:\Users\UserXYZ\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\" /e /h /v /f /Y[/quote] Thanks

    :)
     
    AGTDenton, Aug 30, 2018
    #1
  2. JerometheGiraff Win User

    Exclude folder form Symbolic link ?


    Can I use Xcopy / Robocopy to create not only a symbolic link but exclude a folder from the symbolic link creation ?
     
    JerometheGiraff, Aug 30, 2018
    #2
  3. Bree Win User
    Exclude folder form Symbolic link ?


    Xcopy and Robocopy are not third party apps - they are Windows 10 command line utilities, presumably being used here to make backup copies of user files. I wrote my own .bat file using Robocopy that does full or incremental backups of my user folder to an external or network drive of my choice. I very soon learned the perils of Robocopy and symbolic links...
    The dangers of robocopy and symbolic links

    The switch I had to use for Robocopy is:
    /XJD :: eXclude Junction points for Directories.

    This one may be of use to @JerometheGiraff:
    /SL :: copy symbolic links versus the target.

    You could try combining that with...
    /XD dirs [dirs]... :: eXclude Directories matching given names/paths.
    ...but I'm not sure if that applies to symbolic links.

    Get to Know Robocopy for More Powerful File Management
    Robocopy and a Few Examples
    Type Robocopy /? in a command prompt for the full list of options or see:
    https://technet.microsoft.com/en-gb/...mands/robocopy

    Xcopy is far older than Robocopy and dates back to DOS 3.2. It supports the options:

    /EXCLUDE:file1[+file2][+file3]...
    Specifies a list of files containing strings. Each string should be in a separate line in the files. When any of the
    strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively.
    ....
    /B Copies the Symbolic Link itself versus the target of the link.

    Type Xcopy /? for the full list.
     
  4. Ahhzz Win User

    Windows Accessories - Using Xcopy breaks folder symbolic link

    Windows 10 Tweaks

    Pressing “Windows+Pause Break” (it’s up there next to scroll lock) opens the “System” Window.

    Windows 10: In the new version of Windows, Explorer has a section called Quick Access. This includes your frequent folders and recent files. Explorer defaults to opening this page when you open a new window. If you’d rather open the usual This PC, with links to your drives and library folders, follow these steps:

    • Open a new Explorer window.
    • Click View in the ribbon.
    • Click Options.
    • Under General, next to “Open File Explorer to:” choose “This PC.”
    • Click OK


    credit to Lifehacker.
     
    Ahhzz, Aug 30, 2018
    #4
Thema:

Windows Accessories - Using Xcopy breaks folder symbolic link

Loading...
  1. Windows Accessories - Using Xcopy breaks folder symbolic link - Similar Threads - Accessories Using Xcopy

  2. Word does not want to save to a symbolic link directory

    in Windows 10 Network and Sharing
    Word does not want to save to a symbolic link directory: Hi there, I have opened a file from a symbolic link folder (File is located on another computer in a folder that has been linked as a symbolic link on my computer) When I try to do Save As under a different name on the same folder I get "A file error has occurred" error. If...
  3. Windows accessories

    in Windows 10 Software and Apps
    Windows accessories: How can I save a Notebook text on my desktop? https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-winapps-appscat_tools/windows-accessories/ae1aaa05-7d4a-4c79-8f44-35ae5beb86b0
  4. Using keyboard to type symbols

    in Windows 10 Support
    Using keyboard to type symbols: Can someone tell me how to type the symbol for the Russian Ruble using the keyboard on my laptop ? I had a list of symbols and icons that one could write years ago but I lost it and can't find it using Google. Thanks, Mick 114675
  5. Windows 14.393.187 Update breaks links folder Firefox

    in Windows 10 Updates and Activation
    Windows 14.393.187 Update breaks links folder Firefox: So, I just updated 3 machines with update 14393.187 *Eek I have Firefox as default browser on all 3 machines. After reboot shortcuts .URL in links on desktop won't open by default. Message ''unknown file type do you want to open this file''. The fix is to go to user folder...
  6. Tough Command Line Backup using Robocopy or Xcopy

    in Windows 10 Backup and Restore
    Tough Command Line Backup using Robocopy or Xcopy: I must backup my BSOD'd PC from the command line before re-installing Windows 10, but Robocopy is glacially slow and Xcopy emits"Insufficient Memory" (due to long pathnames). I am now running Windows 10 from a USB 3.0 drive downloaded from MSft which brought me to [Install...
  7. Can I replace an entire drive with a symbolic link?

    in Windows 10 Support
    Can I replace an entire drive with a symbolic link?: I try to use the same basic structure on all my computers: drive C for Windows, D for games, E for user data, F for bulk storage. On my laptop (which is very much my secondary machine and rarely used) I typically split the single HDD into these four parts, but I figure that's...
  8. Symbolic Links (Soft Links)

    in Windows 10 Support
    Symbolic Links (Soft Links): Greetings, I have a large number of symbolic links (soft links) on my PC that I want to migrate to a new machine with an identical directory structure. When I use various backup or copy programs that clone files (bit copy), the symbolic links do not work on the target...
  9. junction point/symbolic link query : multiple DOCUMENTS folders

    in Windows 10 Support
    junction point/symbolic link query : multiple DOCUMENTS folders: hi my documents folder is on e: as c: is a ssd with limited space. somehow i managed to end up with three 'documents' folders in explorer [actually dopus] of which two contain a few folders and the third one many folders, the latter is my real documents folder. the os will...
  10. Exclude folder form Symbolic link ?

    in Windows 10 Support
    Exclude folder form Symbolic link ?: Can I use Xcopy / Robocopy to create not only a symbolic link but exclude a folder from the symbolic link creation ? 80242