# Having trouble running pde file from command line

**URL:** <https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344>\
**Category:** Processing\
**Created:** [January 9, 2019, 3:41am UTC](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344 "2019-01-09T03:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karims99](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@karims99](https://discourse.processing.org/u/karims99)\
**Post date:** [January 9, 2019, 3:41am UTC](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344/1 "2019-01-09T03:41:42Z")

</div>

Hi. I’m trying to get a pde file to run from command line (cygwin installed on windows). I have processing-java installed and I’m in the correct directory. My pde file is called genflag and I run the following

```auto
processing-java --sketch=`pwd`/genflag --run

```

but I always get the error:

```auto
\cygdrive\c\users\Karim\FlagsTBot\Flag_Bot\genflag does not exist.

```

does anyone know why this might be happening?  
Can I not run it through cygwin?

Edit: I realize my pde file was named differently from the parent folder which isn’t allowed. I have fixed that but I’m still getting the same error.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 9, 2019, 1:05pm UTC](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344/2 "2019-01-09T13:05:57Z")

</div>

hi, i can not help about the cygwin thing,  
still i think that you first should confirm that processing-java works.

- so when you say

> I’m in the correct directory.

again, open a cmd window there?  
yourdrive:/…/processing-3.4/  
check with dir  
that you see  
processing-java.exe (26.07.2018)  
and type

```auto
processing-java --sketch=yourdrive:/../processing-3.4/modes/java/examples/Basics/Image/LoadDisplayImage --run

```

it works here / win 7 / but full install processing 3.4 IDE

---

<div class="post-metadata">

**Author:** ![karims99](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@karims99](https://discourse.processing.org/u/karims99)\
**Post date:** [January 9, 2019, 7:07pm UTC](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344/3 "2019-01-09T19:07:50Z")

</div>

Thanks for your response. I did have processing.java installed. I actually ditched using cygwin and I figured out the correct command for using the windows terminal. The correct command was `processing-java --sketch=%cd%/Flag_Bot --run` when I wasn’t using the `%` around the `cd` before.
