# Can't open .bat file!

**URL:** <https://discourse.processing.org/t/cant-open-bat-file/29299>\
**Category:** Coding Questions\
**Created:** [April 12, 2021, 9:53am UTC](https://discourse.processing.org/t/cant-open-bat-file/29299 "2021-04-12T09:53:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 12, 2021, 12:36pm UTC](https://discourse.processing.org/t/cant-open-bat-file/29299/2 "2021-04-12T12:36:09Z")

</div>

Hello,

This worked for me:

```auto
/* 
 * 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:

```auto
REM notepad.exe
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "www.howtogeek.com"
pause

```

How to format:  
_[FAQ - Processing Foundation](https://discourse.processing.org/faq#format-your-code)_

Reference:  
_[https://www.howtogeek.com/663927/how-to-open-google-chrome-using-command-prompt-on-windows-10/](https://www.howtogeek.com/663927/how-to-open-google-chrome-using-command-prompt-on-windows-10/)_

`:)`

---

_[View the full topic](https://discourse.processing.org/t/cant-open-bat-file/29299)._
