# Temp directory - how to change it to existing directory

**URL:** <https://discuss.elastic.co/t/temp-directory-how-to-change-it-to-existing-directory/183053>\
**Category:** Elasticsearch\
**Created:** [May 28, 2019, 9:59am UTC](https://discuss.elastic.co/t/temp-directory-how-to-change-it-to-existing-directory/183053 "2019-05-28T09:59:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gosforth](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@Gosforth](https://discuss.elastic.co/u/Gosforth)\
**Post date:** [May 28, 2019, 9:59am UTC](https://discuss.elastic.co/t/temp-directory-how-to-change-it-to-existing-directory/183053/1 "2019-05-28T09:59:26Z")

</div>

ES display error (starts well then after some time stops because of this):

> ERROR: Temporary file directory [C:\Users\SomeUser\AppData\Local\Temp\2\elasticsearch] does not exist or is not accessible

Some way to set temp directory for good to fixed path?  
If so what to do and in which file?  
Regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 25, 2019, 9:59am UTC](https://discuss.elastic.co/t/temp-directory-how-to-change-it-to-existing-directory/183053/2 "2019-06-25T09:59:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
