# Win10: Hugo works only in one folder? Creating new side, yes. Something else, no

**URL:** <https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573>\
**Category:** support\
**Created:** [June 26, 2016, 2:28am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573 "2016-06-26T02:28:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcgutschy](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mcgutschy](https://discourse.gohugo.io/u/mcgutschy)\
**Post date:** [June 26, 2016, 2:28am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/1 "2016-06-26T02:28:54Z")

</div>

Hello to all. Just install Hugo on Win10, Hugo has only function in the install folder. Can create a new side. Change to the new side, hugo is unable.

Any ideas?

Thanks for help,

Gutschy

Sorry for my bad English, greetings from Germany.

---

<div class="post-metadata">

**Author:** ![digitalcraftsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/digitalcraftsman/32/4142_2.png) [@digitalcraftsman](https://discourse.gohugo.io/u/digitalcraftsman)\
**Post date:** [June 26, 2016, 8:30am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/2 "2016-06-26T08:30:33Z")

</div>

Hello @mcgutschy,

as I understood you were able to create a new site with the `hugo new <my-awesome-site>` command. Which steps did you after the creation?

> [@mcgutschy](#):
>
> Change to the new side, hugo is unable.

Could you add further information of what you changed?

---

<div class="post-metadata">

**Author:** ![mcgutschy](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mcgutschy](https://discourse.gohugo.io/u/mcgutschy)\
**Post date:** [June 26, 2016, 9:47am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/3 "2016-06-26T09:47:25Z")

</div>

Hi digitalcraftman,

thanks for wanna helping me. I go to the install folder. ‘hugo new [side.com](http://side.com)’, new side is create, change directory to [side.com](http://side.com), hugo is unable. ‘hugo new folder’. The command hugo is not function.

Maybe something with the PATH variable is wrong. Have tried as user and admin.

Gutschy

---

<div class="post-metadata">

**Author:** ![digitalcraftsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/digitalcraftsman/32/4142_2.png) [@digitalcraftsman](https://discourse.gohugo.io/u/digitalcraftsman)\
**Post date:** [June 26, 2016, 10:22am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/4 "2016-06-26T10:22:23Z")

</div>

It sounds much like you didn’t added Hugo to the PATH variable. When executing a command the shell is looking for an executable with the name of the command in your current working directory.

If it can’t be found in this directory you can define a list of paths where the shell should look instead for a binary that matches the name. This list is stored in the PATH variable.

Reading the [installation tutorial for Windows](https://gohugo.io/tutorials/installing-on-windows/#technical-users) in the docs should explain all necessary steps to setup Hugo properly with the PATH variable.

---

<div class="post-metadata">

**Author:** ![stiobhart](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stiobhart/32/161_2.png) [@stiobhart](https://discourse.gohugo.io/u/stiobhart)\
**Post date:** [June 27, 2016, 9:27am UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/5 "2016-06-27T09:27:15Z")

</div>

> [@mcgutschy](#):
>
> I go to the install folder. ‘hugo new [side.com](http://side.com)’

It also sounds from the above that you’re trying to create your Hugo sites in the same folder as the directory where the Hugo binary is installed to.

I’m a OSX/Linux guy, so not sure exactly what the layout is in Windows. But I’d imagine you’d want to be creating your sites somewhere else, such as in your home folder –not the same directory where the Hugo binary lives.

As @digitalcraftsman says, once your $PATH [or Windows equivalent] is set properly, you’ll be able to invoke the Hugo command from within your $HOME [or Windows equivalent] directory .

---

<div class="post-metadata">

**Author:** ![mcgutschy](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mcgutschy](https://discourse.gohugo.io/u/mcgutschy)\
**Post date:** [June 27, 2016, 8:31pm UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/6 "2016-06-27T20:31:17Z")

</div>

Ok, will test the PATH again. Will tell about it.

---

<div class="post-metadata">

**Author:** ![mcgutschy](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mcgutschy](https://discourse.gohugo.io/u/mcgutschy)\
**Post date:** [July 9, 2016, 7:25pm UTC](https://discourse.gohugo.io/t/win10-hugo-works-only-in-one-folder-creating-new-side-yes-something-else-no/3573/7 "2016-07-09T19:25:57Z")

</div>

Type the PATH direct in the shell, so all works fine.
