# Exported P2D application not working outside of sketch folder

**URL:** <https://discourse.processing.org/t/exported-p2d-application-not-working-outside-of-sketch-folder/42762>\
**Category:** Processing\
**Created:** [September 14, 2023, 3:40am UTC](https://discourse.processing.org/t/exported-p2d-application-not-working-outside-of-sketch-folder/42762 "2023-09-14T03:40:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![User442B](https://avatars.discourse-cdn.com/v4/letter/u/db5fbb/32.png) [@User442B](https://discourse.processing.org/u/User442B)\
**Post date:** [September 14, 2023, 5:54pm UTC](https://discourse.processing.org/t/exported-p2d-application-not-working-outside-of-sketch-folder/42762/5 "2023-09-14T17:54:05Z")

</div>

Okay, I see. I tried starting it with a batch file following mnse’s instructions, but it does not make a difference. I followed this format for the bat file:

```auto
cd /D <path_to_MySketch.exe>
MySketch.exe %1

```

I guess it is still not properly setting the folder. But even if it does work, how would this effect my ability to distribute it? Would anyone I share the application with have to make a bat file to run it properly?

[This seems like a related issue](https://discourse.processing.org/t/exported-processing-executable-doesnt-start-from-command-line/42659)

---

_[View the full topic](https://discourse.processing.org/t/exported-p2d-application-not-working-outside-of-sketch-folder/42762)._
