A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: fscommand--passing parameters to .exe or .bat

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    17

    fscommand--passing parameters to .exe or .bat

    i need to execute a bat file or exe and pass a parameter. is there a way to do this with flash mx?
    chris

  2. #2
    Banned By GMF Wannabe Gambini's Avatar
    Join Date
    Oct 2000
    Posts
    976
    Hi, download a copy of Flash Studio PRO v2 and you can do this easily with the flashstudio.exec_adv command - check out http://www.mdmforum.com for syntax examples.

    I hope this helps

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    17
    wow that looks great. unfortunately i cannot use other programs other than flash mx.

    can i do it with activeX or VB or javascript?
    chris

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Posts
    17
    i took a closer look at FSP, but I cant figure out how to write an fscommand to open a file. i downloaded a FSCOMMANDS SHOWCASE but didn't see a open file command. how can i write my own fscommand?
    chris

  5. #5
    Banned By GMF Wannabe Gambini's Avatar
    Join Date
    Oct 2000
    Posts
    976
    Hi, if you just want open a simple file or execute a program, you can use this command:
    Code:
    file = "myFile.doc";
    fscommand ("flashstudio.exec","file");
    If you want to execute an EXE with custom parameters, you can use flashstudio.exec_adv - all of the 600+ FSCommands are doecumented in the FSP Help File.

    I hope this helps!

  6. #6
    You can also use *********** JStart, no plugins required. It uses the built Flash Play in the Projector file.

    http://jstart.***********.com

    Parameters

    File
    name.exe

    Arguments
    /c

    Please look at the example files provided.

    Good Luck

  7. #7
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    There are a number of third party tools you can use, check out this list...

    SWF Studio http://www.northcode.com
    Flash Studio http://www.multidmedia.com
    Jugglor http://www.***********.com
    FlashAnts http://www.flashants.com
    Flash 'N Pack http://www.flashnpack.com
    SWFKit http://www.swfkit.com
    LPFlashEX http://www.logicplus.com.hk

    In addition, use PROXY.EXE to do this. Proxy is a tool I wrote that will let you run BAT files from Flash and avoid the ugly DOS box. The best part? It's absolutely FREE. You can download the utility from www.northcode.com/misc/proxy.zip. There's minimal documentation in the ZIP file, but there was a big disussion about it (and some other utilities I wrote) in this thread...

    http://www.flashkit.com/board/showth...hreadid=519274

  8. #8
    Senior Member
    Join Date
    Mar 2002
    Posts
    249
    Northcode - how dare you come in here and offer a free solution!

    let's not start down that road again please
    - northcode
    Last edited by Northcode; 03-16-2004 at 04:42 AM.

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