| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jun 2007
Posts: 2
|
Hi
I dont know if this is a bug with CS3 or what. Basically same old, FSCommand to exec a batch file (test.bat) which is placed in fscommand/test.bat which in turn executes a pdf file. The Flash movie in question is a presentation/exe. The batch file is being called since a cmd screen flashes briefly but nothing happens. (Action: when say a button is clicked) The cmd window disappers but I have managed to get the message within it, dont ask how (screen recorder) LOL Begin message ---------------------- '\\?\C:\root\fscommand' CMD.exe was started with the above path as the current directory. UNC paths are not supported. Defaulting to windows directory. End Message ------------------------ The Action: on(release){ fscommand("exec", "repPDF.bat"); } ----------------------------- The Batch File: @ECHO OFF report.pdf Variations of Batch File tried: Variation1: @ECHO OFF start /d "report.pdf" Variation2: @ECHO OFF start "" "report.pdf" The report.pdf file is placed within the fscommand directory Funny thing is when I double click the batch file all is well, the pdf file opens without a hitch. Has anyone experienced something like this before in earlier versions of flash? Am I missing something? Any comments would be much appreciated. Regards Toad |
|
|
|
|
|
#2 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
Last I heard, there's a bug in the current Flash Player that makes it fail to run batch files correctly.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2007
Posts: 2
|
Thanks for the reply dr_zeus.
Just an update for anyone else that ends up here. http://www.adobe.com/cfusion/webforu...command%20exec http://www.laflash.org/forum/showthread.php?p=9419 Some may find this handy: http://livedocs.adobe.com/flex/2/langref/migration.html Regards Last edited by silicontoad; 06-18-2007 at 06:19 PM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|