Setup.Bat not working while creating Dedicated Server.

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’: 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”

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.

Thanks for the help! It works now!

Works for ue4.23.1