Skip to main content
z_shayeq
Participant
Jan 10, 2014 11:34 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

User Unknow
Legend
Jan 12, 2014 9:46 AM UTC

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

Translate