Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 9 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-18-2007, 05:55 PM   #1
silicontoad
Registered User
 
Join Date: Jun 2007
Posts: 2
Default FSCommand exec UMC?

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
silicontoad is offline   Reply With Quote
Old 06-18-2007, 06:12 PM   #2
dr_zeus
Flash Adventurer
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
Default

Last I heard, there's a bug in the current Flash Player that makes it fail to run batch files correctly.
__________________
Josh Tynjala | JOSHBLOG | Bowler Hat Games
dr_zeus is offline   Reply With Quote
Old 06-18-2007, 06:15 PM   #3
silicontoad
Registered User
 
Join Date: Jun 2007
Posts: 2
Default

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..
silicontoad is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.