# Set FOCUS=Toggle \> CreateFolder FROMCLIPBOARD - not working

**URL:** <https://resource.dopus.com/t/set-focus-toggle-createfolder-fromclipboard-not-working/8174>\
**Category:** Help & Support\
**Created:** [July 19, 2009, 9:41pm UTC](https://resource.dopus.com/t/set-focus-toggle-createfolder-fromclipboard-not-working/8174 "2009-07-19T21:41:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee321987](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@lee321987](https://resource.dopus.com/u/lee321987)\
**Post date:** [July 19, 2009, 9:41pm UTC](https://resource.dopus.com/t/set-focus-toggle-createfolder-fromclipboard-not-working/8174/1 "2009-07-19T21:41:00Z")

</div>

I'm trying to create a folder in destination lister using the name of the selected folder from source lister. Here's my button code:

`Clipboard COPYNAMES=nopaths
Set FOCUS=Toggle
CreateFolder FROMCLIPBOARD `  
Everything works except "CreateFolder".  
What am I doing wrong?  
Also, If you know a better way to accomplish my goal, please tell me.

---

<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:** [July 19, 2009, 10:04pm UTC](https://resource.dopus.com/t/set-focus-toggle-createfolder-fromclipboard-not-working/8174/2 "2009-07-19T22:04:56Z")

</div>

Just use this on its own:

`@nofilenamequoting
CreateFolder "{destpath$}\{file$}"`

(Edit, January 2010: Made button work when the dest path contains spaces.)
