# Execute by folder groupings

**URL:** <https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291>\
**Category:** Uncategorized\
**Created:** [February 14, 2025, 1:13pm UTC](https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291 "2025-02-14T13:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@Bill](https://forums.eggplantsoftware.com/u/Bill)\
**Post date:** [February 14, 2025, 1:13pm UTC](https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291/1 "2025-02-14T13:13:34Z")

</div>

Hello,

I have scripts in a test suite organized into folders. Is there a way to execute by folder which would run all of the scripts contained in a specific folder?

Something like Run Folder1 ?

Thanks

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [February 14, 2025, 9:02pm UTC](https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291/2 "2025-02-14T21:02:23Z")

</div>

Bill, it is slightly more complicated than that, but only slightly. How would you determine the sequence in which the scripts should run? I might be able to provide some sample choice.

---

<div class="post-metadata">

**Author:** ![Bill](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@Bill](https://forums.eggplantsoftware.com/u/Bill)\
**Post date:** [February 17, 2025, 12:53pm UTC](https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291/3 "2025-02-17T12:53:44Z")

</div>

Dave,

The sequence is not important in this instance. It might be interesting to see how you might run the underlying scripts in a particular order, though.

Thanks,

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [March 7, 2025, 3:15pm UTC](https://forums.eggplantsoftware.com/t/execute-by-folder-groupings/14291/4 "2025-03-07T15:15:00Z")

</div>

Hi Bill,

If you want to have lots of control over the sequence of the scripts, this is an option:

```auto
Run "FolderFullOfScripts/Script1"
Run "FolderFullOfScripts/Script2"
Run "FolderFullOfScripts/Script3"

```

Note that the folder and file should be contained within quotes.

If order is less important, you can use this method:

```auto
put "FolderFullOfScripts" into myScriptsFolder -- call out the folder containing the scripts
put the files of (suiteinfo().scriptsfolder&"/FolderFullOfScripts") into myScriptsList -- pull the file names from the folder above

repeat with each item myCurrentScript of myScriptsList
	run (myScriptsFolder & slash & myCurrentScript)
end repeat

```

Cheers!  
Dave
