# Run a batch file from Processing

**URL:** <https://discourse.processing.org/t/run-a-batch-file-from-processing/43474>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [December 14, 2023, 2:03pm UTC](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474 "2023-12-14T14:03:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 15, 2023, 12:27pm UTC](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474/3 "2023-12-15T12:27:23Z")

</div>

Hello @bask185,

There may be something here that can be useful:

> [@Can't open .bat file!](https://discourse.processing.org/t/cant-open-bat-file/29299/2):
>
> Hello, This worked for me: /\* \* Launch Example 1 \* v1.0.0 \* GLV 2021-04-12 \* Launches Google Chrome \*/ void setup() { //Works: //println(sketchPath("")+"data/go.bat"); //launch(sketchPath("")+"data/go.bat"); //Works: println(sketchPath("")+"data\\go.bat"); launch(sketchPath("")+"data\\go.bat"); } go.bat in \data folder: REM notepad.exe start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "www.howtogeek.com" pause How to format: [FAQ - Processing F…](https://discourse.processing.org/faq#format-your-code)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474)._
