PDA

View Full Version : FSCommand exec UMC?


silicontoad
06-18-2007, 05:55 PM
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 :p

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

dr_zeus
06-18-2007, 06:12 PM
Last I heard, there's a bug in the current Flash Player that makes it fail to run batch files correctly.

silicontoad
06-18-2007, 06:15 PM
Thanks for the reply dr_zeus.

Just an update for anyone else that ends up here.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid=1264958&highlight_key=y&keyword1=fscommand%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