# FilesSet Copy with Variable for fileset

**URL:** https://www.finalbuilder.com/forums/t/filesset-copy-with-variable-for-fileset/1749
**Category:** Discussion
**Created:** [May 6, 2011, 3:46am UTC](https://www.finalbuilder.com/forums/t/filesset-copy-with-variable-for-fileset/1749 "2011-05-06T03:46:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 6, 2011, 3:46am UTC](https://www.finalbuilder.com/forums/t/filesset-copy-with-variable-for-fileset/1749/1 "2011-05-06T03:46:10Z")

</div>

Hi all,

I have recently started working with Finalbuilder6.

I need to some help with fileset copy funcationality. Is there a way to pass the function a variable rather than having to define a specific fileset.

What I have is a Action group that contains a FilesetCopy, and i would like use a variable passed to the Action group to select a fileset to use with Fileset Copy.

Thanks

Satpal

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [May 9, 2011, 1:28am UTC](https://www.finalbuilder.com/forums/t/filesset-copy-with-variable-for-fileset/1749/2 "2011-05-09T01:28:53Z")

</div>

Hi Saptal   
  
 You can do this using the BeforeAction script event for the FileSet Copy action.   
  
 Javascript:   
 [code]Action.FileSetName = MyVariable; [/code]   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 9, 2011, 3:16am UTC](https://www.finalbuilder.com/forums/t/filesset-copy-with-variable-for-fileset/1749/3 "2011-05-09T03:16:27Z")

</div>

&nbsp;Thanks that worked a treat.

&nbsp;

Satpal
