PDA

View Full Version : can flash call to .bat file run silent or minimized?


ccandy
01-12-2006, 06:53 PM
I'm launching Ipix files in Ipix viewer from Flash using the "exec" fscommand and .bat files.

I'm wondering, how could I get rid of the ugly DOS command prompt window that pops up? Or how do I run the .bat file minimized or silent?

I've tried adding code to the .bat file (/MIN, -S, >nul), but that only works after the window pops up for a split second. I can only call an executable in the fscommand folder, so I can't use the windows shortcut workaround.

I've found plenty of advice out there for VB scripting, but have found nothing for javascript. Isn't javascript the language flash uses to throw fscommands? Is there any variable I could tack on the back of my "exec" line?

Here's my flash code: (it works fine, just the DOS popup I want to get rid of)

on (release) {
fscommand ("exec", "Myfileaddress");
}

And here's my .bat file code:

@echo off
start ..\SD\HS\Free\fscommand\MediaCenter.ipx

Anyway, I thought I'd try here as I know many use this technique to execute externals from flash.

Thanks in advance,
ccandy

CyanBlue
01-13-2006, 01:01 AM
Howdy and Welcome... :)

You are bound to have that dreaded DOS window if you are using Flash to create a projector...
Your only option is to shell out some $$$ and buy any of those third party projector tools such as Zinc, SWF Studio or mProjector... (Check their sites for more and accurate information...)

ccandy
01-13-2006, 03:13 PM
Thank you.

I'll look into them.

OriginalSvelte
11-15-2007, 04:50 PM
Someone wrote a fix. You can find it here:

http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy