# Use FileSet with Touch?

**URL:** https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200
**Category:** Discussion
**Created:** [September 18, 2006, 6:27am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200 "2006-09-18T06:27:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sjhein](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@sjhein](https://www.finalbuilder.com/forums/u/sjhein)
#### Post date: [September 18, 2006, 6:27am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200/1 "2006-09-18T06:27:21Z")

</div>

I would like to use the “Touch” action to set all of the compiled versions of my application exe’s and installers to the same date/time for a particular build. Is it possible to use a FileSet as the File Spec in the Touch action (perhaps expanded into a variable)?  
  
  
Thanks,  
-Scott

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [September 19, 2006, 1:35am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200/2 "2006-09-19T01:35:36Z")

</div>

Hi Scott,  
  
Unfortunatly the Touch Action doesn’t have support for FileSets built in.   
  
To use a FileSet, you would have to use a File Iterator action, configured to iterate the FileSet.  
  
Regards,  
Paul.

---

<div class="post-metadata">

### Author: ![sjhein](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@sjhein](https://www.finalbuilder.com/forums/u/sjhein)
#### Post date: [September 19, 2006, 2:45am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200/3 "2006-09-19T02:45:07Z")

</div>

Paul,  
  
Thanks. I want to set all of the files in the FIleSet to the current date/time automatically. If I use the File Iterator to do this, is there any way to set the date/time used by the Touch action dynamically when the script is executing? If I use the “Now” option, I assume it will change slightly each time an iteration is made, and I don’t want to have to edit the Touch action to set the date/time each time I run the script.  
  
Thanks,  
  
-Scott

---

<div class="post-metadata">

### Author: ![sjhein](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@sjhein](https://www.finalbuilder.com/forums/u/sjhein)
#### Post date: [September 19, 2006, 7:59am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200/4 "2006-09-19T07:59:36Z")

</div>

Paul,  
  
I figured out how to do it using the CDate() vbscript function to assign the desired build date to the Touch action’s DateTime property in the BeforeAction script.  
  
-Scott

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 20, 2006, 2:15am UTC](https://www.finalbuilder.com/forums/t/use-fileset-with-touch/200/5 "2006-09-20T02:15:29Z")

</div>

Hi Scott,  
  
Thanks for sharing the solution.  
  
I’ve added this to the features list (ie. add fileset support to touch files).  
  
.t8
