---
title: How to execute batch file from JMobile
description: JMobile Runtime allows you to execute scripts as batch files.
---

[F.A.Q. ](https://www.exorint.com/faq)

# [How to execute batch file from JMobile](https://www.exorint.com/faq/2017/06/13/how-to-execute-batch-file-from-jmobile)

 Written by [Mark Olding](https://www.exorint.com/faq/author/mark-olding) | Sep 21, 2023 8:20:26 AM

### What to know

JMobile Runtime allows you to execute scripts as batch files. These scripts must to be with extension "bat"

**NOTE:** On panels we recommend to copy/upload batch file with FTP on panel root folder that can be referred as \Flash\QtHMI\

### What to do to execute batch on HMI Panels

To configure correctly your batch action, you have to proceed as follow:

- Configure, for the desired event a "LaunchApplication" action and set the macro properties
- Fill appName as: chkbatch.exe
- Fill path as: \windows
- Fill arguments as: \Flash\QtHMI\[full_name_of_your_batch_file]

Below you can find an example of action to run "myscript.bat":

Note: If you plan to associate LaunchApplication to a Button, we remind that you can use this Macro only for "OnMouseRelease Action"

### What to do to execute batch on PC Runtime

To configure correctly your batch action, you have to proceed as follow:

- Configure, for the desired event a "LaunchApplication" action and set the macro properties
- Fill appName as: cmd.exe
- Fill path as: C:\windows\system32
- Fill arguments as: /C [full_path_of_your_batch_file]

Below you can find an example of action to run "C:\Mail\Example.bat":

Note: If you plan to associate LaunchApplication to a Button, we remind that you can use this Macro only for "OnMouseRelase Action"

### Applies to

eTop400 Series Panels  
eTop500 Series Panels

 [Update](https://exorinternationalspa.sharepoint.com/:f:/s/Downloads/EmF1O6UNu85Ek6EP2-xyjZ4By_ghsXL7tS576HoOVCh-HQ?e=EKc8ZB)

 [Update_with_button](https://exorinternationalspa.sharepoint.com/:f:/s/Downloads/EmF1O6UNu85Ek6EP2-xyjZ4By_ghsXL7tS576HoOVCh-HQ?e=EKc8ZB)

[View full post](https://www.exorint.com/faq/2017/06/13/how-to-execute-batch-file-from-jmobile)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mark Olding"
  },
  "dateModified" : "2023-09-21T09:25:47.178Z",
  "datePublished" : "2023-09-21T08:20:26Z",
  "headline" : "How to execute batch file from JMobile",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.exorint.com/faq/2017/06/13/how-to-execute-batch-file-from-jmobile",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "F.A.Q."
  }
}
```