Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 09:02
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash MX 2004 (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Andresss, papachan)
| | |-+  Possible to run a batch file with flash?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Possible to run a batch file with flash?  (Read 4604 times)
Joe Roe
Jr. Programmer
**
Posts: 79



View Profile WWW Email
« on: 06/12/08, 19:03 »

Is it possible to run a batch file with flash?  I tried:

on (release) {
   getURL("file:///C:/flv2/test.bat");
}


But the batch file is opened with the browser.

I also tried:

on (release) {
    fscommand("exec", "c:/flv2/test.bat");
}


and

on (release) {
    fscommand("exec", "test.bat");
}


The 2 later scripts did not work at all. Nothing happened. The swf is in the same dir as the test.bat file.
The test.bat file does work because it will work when i click on it.

« Last Edit: 06/12/08, 19:40 by Joe Roe » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 06/13/08, 04:45 »

You can't use fscommand exec in a browser, just in a projector. If you use a projector, place the bat file inside a fscommand folder and call like your last example (consult fscommand exe entry on Flash help)

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything