# Folder Clone - Need Help With Function

**URL:** <https://resource.dopus.com/t/folder-clone-need-help-with-function/8882>\
**Category:** Help & Support\
**Created:** [December 7, 2009, 8:53am UTC](https://resource.dopus.com/t/folder-clone-need-help-with-function/8882 "2009-12-07T08:53:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrTweaksCoffee](https://resource.dopus.com/user_avatar/resource.dopus.com/mrtweakscoffee/32/23979_2.png) [@MrTweaksCoffee](https://resource.dopus.com/u/MrTweaksCoffee)\
**Post date:** [December 7, 2009, 8:53am UTC](https://resource.dopus.com/t/folder-clone-need-help-with-function/8882/1 "2009-12-07T08:53:39Z")

</div>

Hi All.

I'm trying to create a series of functions that clones a folder from one lister to another (in dual mode) with the same name as the original folder. Here's what I've got so far:

Clipboard COPYNAMES=nopaths  
// do something here...  
CreateFolder FROMCLIPBOARD

This works as far as copying the folder name to the clipboard, but I can't get the target lister to have focus or the cloned folder to be created.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![MrTweaksCoffee](https://resource.dopus.com/user_avatar/resource.dopus.com/mrtweakscoffee/32/23979_2.png) [@MrTweaksCoffee](https://resource.dopus.com/u/MrTweaksCoffee)\
**Post date:** [December 7, 2009, 8:56am UTC](https://resource.dopus.com/t/folder-clone-need-help-with-function/8882/2 "2009-12-07T08:56:58Z")

</div>

Also forgot to mention that the cloned folder should not have any child folders or files in it - this is merely a folder name copy operation.

---

<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:** [December 7, 2009, 9:01am UTC](https://resource.dopus.com/t/folder-clone-need-help-with-function/8882/3 "2009-12-07T09:01:28Z")

</div>

See this thread:

[[Set FOCUS=Toggle \> CreateFolder FROMCLIPBOARD - not working](http://resource.dopus.com/t/set-focus-toggle-createfolder-fromclipboard-not-working/8174/1))

---

<div class="post-metadata">

**Author:** ![MrTweaksCoffee](https://resource.dopus.com/user_avatar/resource.dopus.com/mrtweakscoffee/32/23979_2.png) [@MrTweaksCoffee](https://resource.dopus.com/u/MrTweaksCoffee)\
**Post date:** [January 15, 2010, 4:07am UTC](https://resource.dopus.com/t/folder-clone-need-help-with-function/8882/4 "2010-01-15T04:07:54Z")

</div>

Thank you VERY much! That was exactly what I needed!
