# Coping of highlighted files (or folders) to many other highlighted folders as symbol links

**URL:** <https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860>\
**Category:** Help & Support\
**Tags:** script, commands\
**Created:** [March 15, 2026, 1:43pm UTC](https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860 "2026-03-15T13:43:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elektroair](https://resource.dopus.com/letter_avatar_proxy/v4/letter/e/74df32/32.png) [@Elektroair](https://resource.dopus.com/u/Elektroair)\
**Post date:** [March 15, 2026, 1:43pm UTC](https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860/1 "2026-03-15T13:43:13Z")

</div>

Hello!

Just example. I need to copy 20 files to other 35 folders **as symbol links** :

```auto
C:\File_1.txt
C:\File_2.txt
...
C:\File_20.txt

```

to copy **to each** of the following folders

```auto
D:\Folder_01\..
D:\Folder_02\..
..
D:\Folder_35\..

```

So, the preferred result:

> **Result**
>
> ```auto
> D:\Folder_01\
> File_1.txt (symblnk)
> File_2.txt (symblnk)
> ..
> File_20.txt (symblnk)
> D:\Folder_02\..
> File_1.txt (symblnk)
> File_2.txt (symblnk)
> ..
> File_20.txt (symblnk)
> ..
> D:\Folder_35\..
> File_1.txt (symblnk)
> File_2.txt (symblnk)
> ..
> File_20.txt (symblnk)
> 
> ```

I want to make it maybe by script or other functions, with one click. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [March 16, 2026, 6:21pm UTC](https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860/2 "2026-03-16T18:21:43Z")

</div>

You could use this as a starting point:

> [@Copy into multiple selected destinations](https://resource.dopus.com/t/copy-into-multiple-selected-destinations/24570):
>
> Overview: This script-button copies the selection from the source side in to each selected folder on the destination side. Before clicking the button: [image] After clicking the button: [image] Download: If you download button in .dcf format, yo…

That will copy the items, not make symlinks, but I think it'd just be a matter of adjusting the command to tell it to make symlinks instead of copying.

If you need more detailed help, please [link your account](https://resource.dopus.com/my/link-opus).

---

<div class="post-metadata">

**Author:** ![ThioJoe](https://resource.dopus.com/user_avatar/resource.dopus.com/thiojoe/32/42549_2.png) [@ThioJoe](https://resource.dopus.com/u/ThioJoe)\
**Post date:** [March 17, 2026, 12:25am UTC](https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860/3 "2026-03-17T00:25:58Z")

</div>

This is probably something where I'd just ask an AI to write a powershell script that uses the mklink command on all the files, and loop through all the folders to add all the links to all the folders.

Assuming you need to add all the same links to all the folders. You'd give a list of paths of the files, and the folders (using right click Copy As Path).

---

<div class="post-metadata">

**Author:** ![Elektroair](https://resource.dopus.com/letter_avatar_proxy/v4/letter/e/74df32/32.png) [@Elektroair](https://resource.dopus.com/u/Elektroair)\
**Post date:** [March 18, 2026, 10:21am UTC](https://resource.dopus.com/t/coping-of-highlighted-files-or-folders-to-many-other-highlighted-folders-as-symbol-links/58860/4 "2026-03-18T10:21:47Z")

</div>

Thanks!

Edited:

```auto
function OnClick(clickData)
{
	var source = clickData.func.sourcetab;
	var dest = clickData.func.desttab;
	var cmd = clickData.func.command;
	cmd.deselect = false; // Leave source files selected

	if (typeof dest != "object"
	||	dest.selected_dirs.count == 0
	||	source.selected.count == 0)
	{
		clickData.func.dlg.Request("Need selections on both sides","OK");
		return;
	}

	for (var e = new Enumerator(dest.selected_dirs); !e.atEnd(); e.moveNext())
	{
		cmd.AddLine("Copy MAKELINK=softlink TO=\"" + e.item().RealPath + "\"");
	}

	cmd.Run();
}

```
