A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: run *.exe file from c:\....

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    191

    run *.exe file from c:\....

    Is there a possibility to run an exe file with a button?
    The exe file is on the local drive C:\...

    Thanks all for help

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    No. Flash has a security sandbox as they call it. A flash projector can call an EXE but only if it's in a certain sub directory under the one that the flash projector is in.

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    191
    Hi Bret
    ...that means, if my own exe file is in the same directory it works?
    If yes, how is the syntax to call an exe....?

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    not same directory, there is a special sub directory it has to be in

    Look up FSCOMMAND at http://livedocs.macromedia.com/flash...rt4_ASLR2.html


    but here's the relevant info from that site

    fscommand function

    fscommand(command:String, parameters:String) : Void

    Command Paramater
    exec Path to application


    Executes an application from within the projector.

    The exec command can contain only the characters A-Z, a-z, 0-9, period (.), and underscore (_). The exec command runs in the subdirectory fscommand only. In other words, if you use the exec command to call an application, the application must reside in a subdirectory named fscommand. The exec command works only from within a Flash projector file.

  5. #5
    Senior Member
    Join Date
    Mar 2006
    Posts
    191
    thanks a lot Bret
    I will try it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center