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
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