Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Fscommand("exec","something")



Can I call the .exe file from FlashMX, and how? I can't do it like in version 5.0, but they put the exec command, why if that can't work.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 05-10-2002, 06:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

FScommand Exec
FScommand("exec","some.exe") works.
FScommand("exec","http://127.0.0.1/some.exe") doesn't.

does "some.exe" have to be on the same HD as the Flash Projector for "exec" to work?

Or can we use a http or Network address for it?

Thanks
Dev

Exec With Fscommand
I am trying to do two things

open the appropriate acrobate reader for adobe based on platform type. ( I have the validation for that working)

and then I do fscommand("exec", "installer")

the file is located directly in the same folder as the .swf and .fla

I would also like to open .pdf's like a link any suggestions. I tried the geturl with no luck.


I am burning this to a cd and will not be place within html

James
[Edited by jmswrd on 03-25-2002 at 09:30 PM]

EXEC Fscommand And *.EXE
How in the world do I launch a program such as microsoft word in flash? I know it needs to be a *.EXE file in a folder titled fscommand but I have no idea how to make an EXE file. I have Windows XP.

Fscommand Exec
I am trying to create an autorun menu for a CD containing several other flash projects all exe files. I have tried using the exec command but nothing happens when I do. Here is the code on one of my buttons.


Code:
on (release) {
fscommand("exec", "project1.exe");
}

Fscommand (exec)
This was working on Flash 5 now with MX it doesn't.

on (release) {
fscommand("exec", "gl/setup");
}

Can anyone tell me what happened and what I should do?

Thanks

Fscommand (exec)
The code below launches a setup.exe file in the gl folder.
This was working on Flash 5 now with MX it doesn't.

on (release) {
fscommand("exec", "gl/setup");
}

Can anyone tell me what happened and what I should do?

Thanks

Fscommand - Exec
Hay!

I used to use fscommand ("exec", "name.exe") in flash 5, but now im trying to do the same in MX and just doesnt work. I dont know why!. Does anybody knows how can I run an EXE from an mx flash?

Thanks a lot.

Using The Exec Fscommand
guys, how come the friggin exec command wont work?
im trying to open an external .exe projector file from my main movie and they are in the same folder?!
my syntax is sumthing like fscommand("exec","flash.exe");
is this wrong?

EXEC Fscommand
The "exec" fscommand doesn't seem to work. Any suggestion? thanks for advanced

Fscommand - Exec
I am trying to open a powerpoint slide using flash. It appears that the flash 5 player allows this but the flash 6 player doesn't.
Does anyone know of anyway around this?
Thanks,
CG

FsCommand: Exec
Does anybody know how to use FsCommand: Exec. I would like to use it for an autorun on a CD. I will need to have a button that when clicked starts a .exe setup file.

HELP Fscommand Exec
Help please! This is to be shown to the client tomorrow morning!

I'm running a flash projector file from a cd - at the end of the flash file it's supposed to open a browser with a specific html file open in it... Also - they want the html to open full screen! I know there's an fscommand exec but it's not working - or I just don't know what I'm doing... please help if you can!

Thank you!
Crystal

FScommand Exec
I have never used the "exec" command. I know it can load exe files. I have a flash exe named "presentation.exe" and I want to load the file and I am using the following code in a button to load the file "presentation.exe" but it is not working.

Here is the code:

on (release) {
fscommand("exec", "presentation.exe");
}

Can anyone tell me the reason?

Fscommand(exec)
Why would this not be working?

on a button:

on(release){
fscommand("exec", "management_book.XLS");
}

_t

Fscommand,exec,.bat
Projector code;btn_1.onPress=function(){
fscommand("exec","web.bat");
}
web.bat:tried
start
@ ECHO OFF
explorerE:fscommandindex.html
no result
START fscommandindex.html
nothing.
Read loads of posts,tutorials etc from wher i got this code.
Any help,please/thanks.Steve

How Do You Use Fscommand Exec On Mac?
on my cd-rom i want for it where your click a button and it opens up a pdf file. how do you do that on a mac?

Fscommand Exec
i did make fscommand folder and put my exe file in it, but my problem is" IF I WANT TO EXECUTE APPLICATION FROM THE APPLICATION INSIDE THE FSCOMMAND FOLDER" how to do it

let me explain" there are two .exe file(A & B) both are flash generated. file A.exe calls B.exe which is in fscommand folder, when B.exe execute i want to close B.exe and call A.exe(which is outside the folder fscommand)"

so how to do it

my mail id is sachinjain_155@yahoo.com

reply as early as possible.

Fscommand Exec
Hi,
Why fscommand exec don't run on Flash CS3 ???
What's the way now to launch an application with the projection ?
thanks
JP

Fscommand Exec
This one's a bit weird. I know a lot of other people have had problems getting fscommand exec to work. I had it working nicely using a trial of Flash 9, but with AS2.0. Nonetheless, my trials were successful; by putting my files in the fscommand subdir, it worked a charm.

Earlier this week, my work *finally* purchased the copy of Web Premium I've been requesting for three months now. This made me one happy little worker! So, I installed it all (including uninstalling and reinstalling the trial version of Flash 9 I had, as it wasn't being recognised as part of the suite), and kept on going with a Flash projector that I was doing in the old Flash 9.

It wasn't until I thought it was finished and published it to do a final test when I realised that the fscommands no longer worked, and yet a few days ago they had. My code hasn't changed, and I tried out a test in a new document to no avail.

Anybody else found a similar thing? And is there any talk from the officials yet about what's going on?
Cheers.

Fscommand Exec
Hi,
I need open the Notepad in the Flash button release time
my source code is

on (release) {
fscommand("exec", "C:WINNTNOTEPAD.EXE");
}

but its not working. What problem i don't know pls help me

Regards
sathish

Fscommand Exec
can somebody explain me a little bit fscommand exec function
I created a folder fscommand and put some exe and succedded to run it
but in other folders above it with ../
and subfolders I couldn't get it to run exe files

Fscommand(exec)
Does anyone know how to get fscommand('exec' 'Test.app'); to work? I'm on a Mac and I can't seem to launch a little test script from flash. (as3 fl9). I've looked everywhere and can't seem to find to much but dead ends. Seems like there's gotta be a way to allow mac flash projector's execute outside files in as3.

Thanks,
Ryan

Cs3 & Fscommand Exec Bug
Hi everyone,

I'm using flash cs3 and am trying to make a projector which is capable of launching an external file, everything is fine, the functions syntax is fine and the content is in the right place (a sub folder called fscommand), but after some googling apparently there's a bug with cs3 where exec flat out doesn't work, fails to launch the file.

Does anyone know if adobe has released an update version of flash which fixes this?

thanks!

Fscommand Exec
Hi,
I need open the Notepad in the Flash button release time
my source code is

on (release) {
fscommand("exec", "C:WINNTNOTEPAD.EXE");
}

but its not working. What problem i don't know pls help me

Regards
sathish

FSCommand Exec Not Working
Anyone know why, when I select an FSCommand and tell it to launch an exe it doesn't launch it, but when I double click on the exe it launches?

Basically I have done this

on (release) {
fscommand ("exec", "blaunch.exe");
fscommand ("quit");
}

I have something like this on 5 other buttons, whenever I call another flash exe it will run that, but the exe's blaunch.exe and bookviewer.exe will not run. Anyone know why?

Dennis

Fscommand / Exec Problem
hey there,

i have several variables that i would like to store in a text file..

here's a cut down version of the code:


Code:
someVar = "&section1=" + section1save + "&section2=" + section2save;

fscommand("exec","command.com /C echo " + someVar + " >some.txt");


now... this 'exec' command seems to work ok when i want to store a couple of variables in the text file.. ie..


Code:
someVar = "&section1=" +section1save + "&section2=" + section2save;


..but causes problems when i want to combine more variables.. ie..


Code:
someVar = "&section1=" + section1save + "&section2=" + section2save + "&section3=" + section3save + "&section4=" + section4save + "&section5=" + section5save;


this doesn't seem to cope too well either:


Code:
fscommand("exec","command.com /C echo " + "&section1=" + section1save + "&section2=" + section2save + "&section3=" + section3save + " >some.txt");



any ideas on what might be going on?


thanks for any help.

FSCOMMAND EXEC PROBLEM
I am trying to have the FSCOMMAND exec find a file under the folder fscommand (since its the only way it sees files) but even with giving it the folder name and path name it won't find it. I need to some how target the 3 exe files in this folder, They are authorware files and I have director too and they cant not be together on the same level -(folder wise) so i have to have the authorware in a sept, folder, Can anyone help or find a alternate way to get these files to run w/o any extra warnings or actions.
Thanks a lot

darkmagician@hotmail.com

Fscommand (exec) Running .msi
Hi there
How can Flash MX run a new windows installer (.msi) file?
I`ve used the fscommand to run (exec) .exe`s without hassle
it`s just that most new windows installers have a .msi file extension. Please help
Thanks

LAKY - Using FSCOMMAND(EXEC)
Now I'm spending 5th hour with this problem:
example make a button with:
on (release) {
fscommand("exec", "test.bat");
}
I have test.bat file(of course in the same directory), but flash Did NOT call it...
or another example
on (release) {
fscommand("exec", "test.exe");
}
I have that test.exe in the same directory, but my FU*KED MX did not run it..
This also happen if I export it as: swf or exe...
So I'm asking AM I STUPID OR MY FLASH MX ???

Fscommand (EXEC) It`s Going To Kill Me
I have created a stand-alone Flash Projector (exe) for a CD-ROM presentation, and I must call one exe file (aplication) from it, but fscommand sucks a lot !

......is like this:

on (press) {
fscommand("exec","myapp.exe");
}

.............

i created a dir named "fscommand", put in there the Projector and the application to run but nothing happens here !!!

i think that i`m going crazy !!! please someone help, what it`s the trouble ???????????????

Fscommand Exec Problem
Hi there,

I try to use fscommand "exec". But it doesn't work. All the other fscommands works fine. Is something wrong with the scipt?

on (release) {
fscommand("exec", "c:/windows/calc.exe");
}

Is there also a way open the dial-up program to get connected to internet?

Mx - Fscommand Exec Problem
Hello,
I need a help with this.

In older version Flash 5 when I put command fscommand("exec","abc.exe"); where abc.exe is another Flash player file and it is in the same folder as activ .exe file, other (abc.exe) file is opening and two players a working in the same time.

In Flash MX this is not working.

Someone knows why?

Fscommand Exec Does Not Work
THAT'S IT....I AM SICK AND TIRED...I WENT ALL AROUND THE UNIVERSE AND THEY ALL SAY THE SAME THING.... TO RUN AN EXE THRU FLASH YOU GOTTA FIRST MAKE A PROJECTOR AND TYPE:

fscommand("exec","filename.exe");

AND GUESS WHAT?!!!! I MADE A PROJECTOR AND STUFFED THAT CODE INTO A BUTTON...PUT THE EXECUTABLE IN THE SAME ROOT FOLDER AND ........

NOTHING HAPPENDS!!!!!!!!!!!!!!!!!!!!!!! (Flash MX)

SO, could anyone solve this drastic situation of mine? I'd really really really really appreciate it...thanks.

Fscommand Exec Powerpoint
good morning guys, or good evening however you see it.
i am (trying to) loading a power point presentation from a swf file for a presentation because i couldnt get my avi to export. anyway, i followed this tutorial and got stuck,

http://www.flashkit.com/tutorials/Pr...-782/index.php

"4) Right click on your launcher.bat file and check the "Close on exit" box. (This will create an MSDOS shortcut in the same root as the batch file. This is necessary! Do not change or delete this new file! Note, that you will still call the launcher.bat file with fscommand exec.)

Note that step 4 immediately closes that ugly MSDOS prompt window so it's not hanging around waiting for the .pps file to launch, and won't be sitting there on top of your flash menu when you exit out of your slide show.

"

i dont see the option. how do i make this happen?
thanks in advance for any help.
randy

Fscommand Exec Mac Not Working
I am trying to use
fscommand ("exec", "start.exe");
to open a director projector I created on my mac.
Although the projector is in a subdirectory named "fscommand", it fails to open. The projector is a mac executible despite the ".exe" extension. I tried naming the file with and without the extension and it still won't open from flash. I also tried calling the command from a stand-alone flash projector as wel as from with an html with fscommand document in Explore and Safari. Nothing seems to work. The director program works when clicked on itself. Fscommand "quit" works fine from the flash as standalone or in a browser.

Does fscommand work on mac OSX10.3.4? with Flash 2004?

I have read the macromedia tech notes and seem to be doing everything correctly.

Thanks for any help.
-Joe

Problem With Fscommand Exec
Hi, i have created a bat file to run my doc file

batch file

@echo off
start ILOFacilitiesFactsheet.doc


in my button , i added a actionscript

on(release)
{
fscommand("exec" , "loadILO.bat");
}

but its not loading..why iissit

Using The Exec Command In Fscommand Help?
Hey,


So I know I need to write a .bat file to get the exec command working in the PC exe flash projector but what type of file would I have to write to get this to work on a Mac? Since the .bat file is a windows dos file mac's won't see it. I've been reading about using shell script but I don't know how to write it or what to use. Thanks for any help

[CS3] FSCOMMAND EXEC Not Working
Hi Everyone,

I am making an electronic documents CD using Flash CS3, actionscript 2.

I am trying to use buttons to open up .pdfs, .docs, and .pps, however, the method that I normally use and has previously worked is not cooperating.

Originally I have used this code on a button:
on(release) {
fscommand("exec", "mypdf.exe");
}

All my documents are in the correct folders and I am using proxy.exe and .bat files, all of which are placed in the fscommand folder.

I have run out of ideas as to why this is not working, can anyone give me any suggestions?

Thanks so much!

I Can't Run The Fscommand.exec In Flash MX On Win Xp
1.) I don't understand what is happening to my Operating system each time I try load the fscommand.exec in Flash MX. What is wrong? is it with me or with my computer?

2.)Please, I want to try loading i.e calling a .exe
file to be installed. Please, there is something I was
thinking of doing as in trying using few of the codes
given in the actionscript library of Flash MX may be
it will work but if you really think there is a way
out to that please I wouldn't mind you taking me
through some lessons of tutorial.

Problem With Fscommand Exec
Hi everyone ;)

im creating a Flash Projector to use in a interactive cd.
I need to open .doc files
i try this:

on (release) {
fscommand ("exec", "test.doc");
}

i put the test.doc in a subfolder named fscommand on the root of the
projector.
i try to put the .doc in the same folder of the projector

nothing happens

anyone knows what im doing wrong?

I use Flash 8

Ps.: Sorry my bad english... i'm from brazil

Tks

Fscommand And Exec Parameter
trying to use flash to create an installation cd, i encountered a problem with fscommand, and its exec parameter. i specified the path to the exe file but flash just can open it.
any ideas what could be wrong?

Fscommand Exec And Tribulations
Hello, this is like my first post, or first one in a long time So you'll have to excuse me if I'm submitting a request for help in the wrong format or something.

I'm having a problem with a little flash I made just to test out the "exec" fscommand. Basically, I have all my files in one folder (published.exe, program.exe etc etc)

In the flash itself, I have a simple button, with the following code on it.
on(release)
{
fscommand("exec","program.exe");
}

That's it, I've paid attention to case sensitivity, I just feel that it must be a simple problem, rememeber the published file and the program it's calling are in the same directory. (I also tried a "/program.exe" but also no success)

Any help would be greatly apprectiated. cheers
DW

Exec Fscommand In Flash 8
how exec fscommand works in flash 8? the flash 5 code dosent work

Flash MX Fscommand Exec
Using Flash MX with player 6.0. I have a flash document that has been published as an .exe. I want to use the fscommand exec function to call an external file. The external file is a flash document called help.exe. It is located in a folder called fscommand in the root directory. On a button in my flash file, i have the following script:

on (release) {
fscommand("exec, help window.exe");
}


It doesn't work. What am I doing wrong? Does the help.exe file need to be in the fscommand folder like I have it or not? Is this function supported in flashplayer 6? Any help would be greatly appreciated!!!
Thanks

Fscommand Exec Presentation
Is this possible? I am trying to start a pps presentation with AS. This is my code:
Code:
pres.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void {

fscommand("exec","BBQ.pps");
}
The problem is that nothing happens.

Fscommand And Exec Parameter
trying to use flash to create an installation cd, i encountered a problem with fscommand, and its exec parameter. i specified the path to the exe file but flash just can open it.
any ideas what could be wrong?

FSCommand Exec Problem
Anyone know why the FSCommand Exec command doesn't seem to work?

On a button, I have the following actions:

on (release) {
    fscommand ("exec", "apps/ar5.exe");
}

This movie (which is a menu) is going to be on the root of a CD, and there will be an Apps folder. In that is an exe called ar5.exe.

I remember reading somewhere it said that Flash Player 6 won't allow you to launch exe files as a security measure. However, I am using Flash 5 and have tried this on several computers where there is a variation between Player 5 and 6.

This is the same command as I have used before and it worked fine.

Any help is appreciated...

Fscommand Exec Problem
Hi,

I have been reading a few posts about the fscommand exec and how it has been upgraded for security reasons for the new players.

My problem is if i export a fla from flash mx as a version 5 player and then make the exported swf an exe projector why do the exe's files i want to run dont run.

The structure on my cd is as follows. setup.exe in the root of the cd.


setup.exe (projector)
|
|___software folder 1
|____some exe files in software folder
|
|____sub software folder (under software folder 1)
|____exes in this subfolder


A while ago when i had flash 5 this was no problem but now i have a new version it is becoming a bit of a hastle.

Any help/feedback/ideas welcome.


Jamie

Fscommand To Exec Problem
i want to make a exe manu file using flash, so when i burn some of my software installers on the disc, i can use the exe file to select which software i want to install. but i try many times, i cannot even access a simple exe file on my harddrive using fscommand,

here is what i did: i created a folder at
E:my documentsFLASH ry

and inside of that, i create a exe file called try.exe which i want to get access to
so the path to try.exe is
E:my documentsFLASH ry ry.exe

and then in Flash, i create a botton and put in

on (release) {
fscommand ("exec", "E:my documentsFLASH ry ry.exe");
}

and export as start.exe file in the same folder, which is
E:my documentsFLASH rystart.exe

but i try to use it to access try.exe, it never work!!!~so confused

plz help me, thanks in advance

Using Exec Fscommand And Bat Files
Hello all, I've created a small interface for my companies annual user conference in Flash and I am publishing it as an exe to be delivered on CD-ROM. This file call multiple ppts. xls's and pdf's. I crrently have the files open using the fscommand which calls a bat file.

//code on button
on(release)
{
fscommand("exec","wire.bat");
}

//code in bat file

START Files/"Networking Wireless Communications.ppt"

My question is two fold
1- Is there a way to supress the bat file from being visually seen?
2- Is there a way to specify withinthe bat file the applicaiton that should open the file? For example if a user does not have powerpoint I would like to specify the powerpoint viewer as the app to open the file?

Thanks all,

Rc

Copyright © 2005-08 www.BigResource.com, All rights reserved