# How to retrieve Media and Templates file names using C#

**URL:** <https://casparcgforum.org/t/how-to-retrieve-media-and-templates-file-names-using-c/209>\
**Category:** General\
**Created:** [June 1, 2018, 7:02pm UTC](https://casparcgforum.org/t/how-to-retrieve-media-and-templates-file-names-using-c/209 "2018-06-01T19:02:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshgadol](https://casparcgforum.org/letter_avatar_proxy/v4/letter/r/85f322/32.png) [@roshgadol](https://casparcgforum.org/u/roshgadol)\
**Post date:** [June 1, 2018, 7:02pm UTC](https://casparcgforum.org/t/how-to-retrieve-media-and-templates-file-names-using-c/209/1 "2018-06-01T19:02:14Z")

</div>

Hi,  
How do I retrieve information from the server using C#? I’m working on a client and I want to get the Media file names, Template and the Media folder path to string array.  
Thanks

---

<div class="post-metadata">

**Author:** ![phil403](https://casparcgforum.org/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@phil403](https://casparcgforum.org/u/phil403)\
**Post date:** [June 1, 2018, 10:50pm UTC](https://casparcgforum.org/t/how-to-retrieve-media-and-templates-file-names-using-c/209/2 "2018-06-01T22:50:04Z")

</div>

Hi  
use the query commands for this purpose:

> **[CasparCG/help](https://github.com/CasparCG/help/wiki/AMCP-Protocol#query-commands)**
>
> File an issue here if you need help with CasparCG by the community-led support :+1: - CasparCG/help

depending on the version of caspar, you have to make sure that the scanner.exe is running.
