# Setup.Bat not working while creating Dedicated Server.

**URL:** <https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368>\
**Category:** Modding\
**Tags:** dedicated-server, unreal-engine, setup, GitHub, Modding, UE4, question\
**Created:** [December 12, 2018, 4:28pm UTC](https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368 "2018-12-12T16:28:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OG\_FATFACE\_420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Post date:** [December 12, 2018, 4:28pm UTC](https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368/1 "2018-12-12T16:28:31Z")

</div>

Hello! I was in the process of making a dedicated server. I got the source code from GitHub and tried running the file Setup.bat. I did this and got this error:

Checking dependencies (excluding Mac, Android, Linux)…

Updating dependencies: 99% (33911/34200), 5845.1/5846.4 MiB | 0.88 MiB/s…

Failed to download ‘[http://cdn.unrealengine.com/dependencies/2636758-e606e606851e4693b1729dd35dcef7ae/345f37ad429b27f1360cf26aa535ef037724f7c4](http://cdn.unrealengine.com/dependencies/2636758-e606e606851e4693b1729dd35dcef7ae/345f37ad429b27f1360cf26aa535ef037724f7c4)’: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (PathTooLongException)

Press any key to continue . . .

How do I fix this? Help is appreciated. Thanks!

I also clicked on “Run as Administrator”

---

<div class="post-metadata">

**Author:** ![Slycoop3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slycoop3r](https://forums.unrealengine.com/u/Slycoop3r)\
**Post date:** [December 13, 2018, 1:39pm UTC](https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368/2 "2018-12-13T13:39:03Z")

</div>

I had the same issue and its stupid frustrating i know. I unzipped the file directly into my C:/ and when you unpack it did you notice it has two files of the same name to go through?

C;/user/user/mydocuments/ue4source421/ue4source421

you need to make it so it isnt a two folder hop to get to the source code if that makes sense…

c:/Ue4Source421/Allsourcedocx

hope that makes sense and helps.

---

<div class="post-metadata">

**Author:** ![OG\_FATFACE\_420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Post date:** [December 13, 2018, 3:56pm UTC](https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368/3 "2018-12-13T15:56:52Z")

</div>

Thanks for the help! It works now!

---

<div class="post-metadata">

**Author:** ![JenAnty](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jenanty/32/965098_2.png) [@JenAnty](https://forums.unrealengine.com/u/JenAnty)\
**Post date:** [July 11, 2019, 12:17pm UTC](https://forums.unrealengine.com/t/setup-bat-not-working-while-creating-dedicated-server/439368/4 "2019-07-11T12:17:37Z")

</div>

Works for ue4.23.1
