# Fscrawler keeps defaulting to my user directory

**URL:** <https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535>\
**Category:** Elasticsearch\
**Created:** [October 27, 2017, 8:13am UTC](https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535 "2017-10-27T08:13:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilpor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bilpor/32/24043_2.png) [@bilpor](https://discuss.elastic.co/u/bilpor)\
**Post date:** [October 27, 2017, 8:13am UTC](https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535/1 "2017-10-27T08:13:46Z")

</div>

I have installed FSCrawler in a subfolder within Program FIles. When I run .\fscrawler using powershell for the first tme it created my jobs folder within Users\myuser\.fscrawler directory. I moved the jobs folder back where I actually want it within program Files.

When I try to run the job again, it says that the job doesn't exist presumably because it's looking in the wrong place still.

my full command line is

> .\fscrawler bamdocs –config\_dir “C:\Program Files\Elastic\FsCrawler\Jobs” –loop 1

bamdocs exists as a subfolder of jobs. Within bamdocs I have my \_settings.json file

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 27, 2017, 9:58am UTC](https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535/2 "2017-10-27T09:58:21Z")

</div>

May be try with:

```auto
.\fscrawler bamdocs –config_dir “C:/Program Files/Elastic/FsCrawler/Jobs” –loop 1

```

And/Or, can you move your config dir to somewhere where you don't have spaces in the dir name? Like not in `Program Files`?

---

<div class="post-metadata">

**Author:** ![bilpor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bilpor/32/24043_2.png) [@bilpor](https://discuss.elastic.co/u/bilpor)\
**Post date:** [October 27, 2017, 10:12am UTC](https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535/3 "2017-10-27T10:12:18Z")

</div>

This is now ok. For some reason there must have been an hidden character somehwere. I closed powershell and re-opened. Typed the command in again and this time it attempted to run (with errors - my other post).

---

<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:** [November 24, 2017, 10:12am UTC](https://discuss.elastic.co/t/fscrawler-keeps-defaulting-to-my-user-directory/105535/4 "2017-11-24T10:12:27Z")

</div>

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