Copying links and junctions
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Copying links and junctions
How can I copy a folder structure preserving all links and junctions?
-
admin
- Site Admin
- Posts: 64916
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Copying links and junctions
Copy a folders structure without files to another location? Links ARE files.
FAQ | XY News RSS | XY X
Re: Copying links and junctions
he means junctions get lost when doing a copy and paste
why not create another junction instead of copy paste ? )
anyways , only time i worry about preserving Junctions is doing backups onto another ssd , i use syncback for that , it has granular control over how Junctions and Hardlinks etc are treated ...
why not create another junction instead of copy paste ? )
anyways , only time i worry about preserving Junctions is doing backups onto another ssd , i use syncback for that , it has granular control over how Junctions and Hardlinks etc are treated ...
-
admin
- Site Admin
- Posts: 64916
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Copying links and junctions
I think this is what File Explorer does, too, so it's kind of the standard. Currently there are no plans to offer more granularity here.
FAQ | XY News RSS | XY X
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Re: Copying links and junctions
Basically, I have a folder/file structure that serves as a template for new instances. Some parts of this structure are shared and should be linked, not copied. I am looking for a way to replicate this without having to manually recreate the links and junctions.
Re: Copying links and junctions
Scripting...
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 64916
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Copying links and junctions
No time to test, but this tweak should do the trick for junctions (2048 is COPY_FILE_COPY_SYMLINK):
You probably need admin rights for it to work.
And, of course, this must be ticked: Configuration | File Operations | File Operations | Custom Copy Operations | Use Custom Copy
Code: Select all
CustomCopyFlags=2048And, of course, this must be ticked: Configuration | File Operations | File Operations | Custom Copy Operations | Use Custom Copy
FAQ | XY News RSS | XY X
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Re: Copying links and junctions
Where do I put this? In xyplorer.ini? If so, which section?admin wrote: ↑24 Sep 2025 14:37 No time to test, but this tweak should do the trick for junctions (2048 is COPY_FILE_COPY_SYMLINK):You probably need admin rights for it to work.Code: Select all
CustomCopyFlags=2048
And, of course, this must be ticked: Configuration | File Operations | File Operations | Custom Copy Operations | Use Custom Copy
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Re: Copying links and junctions
It still creates a .copy of the junction's content.admin wrote: ↑24 Sep 2025 14:37 No time to test, but this tweak should do the trick for junctions (2048 is COPY_FILE_COPY_SYMLINK):You probably need admin rights for it to work.Code: Select all
CustomCopyFlags=2048
And, of course, this must be ticked: Configuration | File Operations | File Operations | Custom Copy Operations | Use Custom Copy
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Re: Copying links and junctions
Is it possible to use Custom Copy for "New XY"? That would be cool. 
-
Patrick Schönbach
- Posts: 68
- Joined: 26 Apr 2015 15:25
Re: Copying links and junctions
Last time I used "New XY", the normal Windows copy routine was used.
XYplorer Beta Club