Skip to main content
z_shayeq
Participant
January 10, 2014
Question

how can I run a .bat file from an html/javascript adobe air installation package?

  • January 10, 2014
  • 1 reply
  • 14221 views

I write an html/javascript code which works completely true

but when I made the installation package by air-sdk

it dosent work properly

my code is:

<html>

<head>

    <title>Hello World</title>

          <script type="text/javascript">

        function appLoad() {

            air.trace("Hello World");

        }

    </script>

</head>

<body onLoad="appLoad()">

    <h1>Hello World</h1>

          <br />

<button onclick="window.open('file:///C:/Windows/notepad.exe')"> Launch notepad </button>

<button onclick="window.open('file:///D:/opennotepad.bat')"> Launch batnote </button>

</body>

</html>

Chapter 5: Creating your first HTML-based AIR application with the AIR SDK

This topic has been closed for replies.

1 reply

User Unknow
Legend
January 12, 2014

Seems to be security violation. You can't execute bat or cmd