# Win: Bot instant closing

If the bot insta closes when you open it, it probably is because something is wrong in the env. \
But the best option to run the bot on Windows is with PowerShell (cmd).\
\
To open with powershell is really simple : \
\
\
1\) Type powershell in the windows search bar and select the Windows Powershell\
![](https://479923132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh32uNtbLhsVcOhsgNPd%2Fuploads%2FBoPaN6VPLgsdrta0TAtj%2Fimage.png?alt=media\&token=261569dc-9c3e-4a80-9f41-ddaa2da28f9e)

2\) After that using command `cd` go to the bot location\ <br>

<figure><img src="https://479923132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh32uNtbLhsVcOhsgNPd%2Fuploads%2F30aDXiEhY2nJ4NmDPILq%2Fimage.png?alt=media&#x26;token=aae03881-751d-46c4-8155-33f0a93a68d2" alt="" width="374"><figcaption></figcaption></figure>

3\) Then run the bot with ./DragonFly\
\
\
If your bot has any error in the config will show in the terminal :\ <br>

<figure><img src="https://479923132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh32uNtbLhsVcOhsgNPd%2Fuploads%2FwPLDYHPA4RRJ1HaDM6g7%2Fimage.png?alt=media&#x26;token=43113233-907c-4bf4-8c14-8de2ce655154" alt="" width="404"><figcaption></figcaption></figure>

<figure><img src="https://479923132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh32uNtbLhsVcOhsgNPd%2Fuploads%2FnY0Yf0on6iFk918XFP61%2Fimage.png?alt=media&#x26;token=cd213a0e-fae1-4127-a464-b9d2288271c9" alt="" width="428"><figcaption></figcaption></figure>
