|
|||
|
Hello,
I am a flash designer, I don't know a lot about programmation. I need Help about to execute a .BAT file. And using the FFish script to hide this .bat executed window. I read the documentation, an triad so many times with FFish script... and it is not working, may be I did something wrong. Anyhow I need help. The task is the following: -in flash I made a button with the action: on (release) { fscommand("Exec", "files\\exechtml.bat");} An this works. But, I need to hide this exechtml.bat window when it's executing, I don't want to see this window. So I used FFish script. The FFish script is not working, and I read the documentation. So I made the following: I put on the button in flash: on (release) { fscommand("Exec", "Shell.run(files\\exechtml.bat[, 0])");} Schow_flags Value [, 0] for to Hide the window... And wehn I publish to swf, than to exe with SWFkit express 2.2 r2, an wehn I click on the button, nothing happends, It is not working. Why? ??? Please If somebody can help me? about this "FFish script" to hide the exechtml.bat window when it is executing. Or provide me an example, so I can fix this... This would be very grateful. Bob |
|
|||
|
Where is the .bat file?
If in the same folder of the exe file, please try Code:
on (release) {
fscommand("ffish_eval",
"Shell.run('\"' + getAppDir() + 'files\\exechtml.bat\", 0');");
}
Code:
on (release) {
fscommand("ffish_eval",
"Shell.run('\"' + getAdditionalFile('files\\exechtml.bat') + '\", 0');");
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|