New
#1
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:
ThanksCode: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