# Question - Paste same file to different folders

**URL:** https://resource.dopus.com/t/question-paste-same-file-to-different-folders/19219
**Category:** Help & Support
**Created:** [September 19, 2014, 3:50pm UTC](https://resource.dopus.com/t/question-paste-same-file-to-different-folders/19219 "2014-09-19T15:50:08Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [September 19, 2014, 4:59pm UTC](https://resource.dopus.com/t/question-paste-same-file-to-different-folders/19219/2 "2014-09-19T16:59:14Z")

</div>

11.1 is six months old now, so you may need to install the latest update for this to work.

If you use this as a button or hotkey, it will paste the clipboard contents into each selected folder:

![](https://resource.dopus.com/uploads/default/original/3X/1/b/1b9c8cc99d80397b3becdad154d32cd0415b7fdb.png)

Here's the button code. See [How to add buttons from this forum to your toolbars](https://resource.dopus.com/t/how-to-add-buttons-from-this-forum-to-your-toolbars/3546/1) if you're not familiar with how to use it to add a toolbar button.

`<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Paste Into</label>
	<tip>Paste into each selected folder</tip>
	<icon1>#default:clippaste</icon1>
	<function type="script">
		<instruction>@script vbscript</instruction>
		<instruction />
		<instruction>Function OnClick(ClickData)</instruction>
		<instruction>	Set cmd = ClickData.Func.Command</instruction>
		<instruction>	For Each SelDir In ClickData.Func.sourcetab.selected_dirs</instruction>
		<instruction> cmd.ClearFiles</instruction>
		<instruction> cmd.AddFile SelDir</instruction>
		<instruction> cmd.RunCommand &quot;Clipboard PASTE USESEL&quot;</instruction>
		<instruction>	Next</instruction>
		<instruction>End Function</instruction>
	</function>
</button>`

---

_[View the full topic](https://resource.dopus.com/t/question-paste-same-file-to-different-folders/19219)._
