A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Running an exe file from projector

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    22
    I'm trying to link to an exe file which is NOT in the same directory as the projector file.

    I've tried ...

    on (release) {
    fscommand ("exec", "/software/star/setup.exe");
    }

  2. #2
    Blood elf, or PHP guru... hmmm Paradoxz's Avatar
    Join Date
    Aug 2001
    Location
    Califorina
    Posts
    589
    lol.. well I see a lot of problems.. one would be... if it's a projector on your HD.. why are you using /? instead of \? This is a problem in many cases. If this does not fix it.. then I will define the correct path, let me know.

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    22
    Paradoxz

    Thanks for your reply.

    The projector is on a CD. Does this make any difference in terms of the pathname?

  4. #4
    Junior Member
    Join Date
    Oct 2001
    Posts
    2

    Thumbs up

    I couldnt seem to get that to work either, so I just settled to put it all under the same directory, I am using an .exe to open an external .pdf file with works great from my Hard Drive, however, once I have burnt it to CD, the .exe files do not want to execute at all, even if I double click on them, any ideas???

    This is what I have been using.....


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


    chaps..

  5. #5
    Blood elf, or PHP guru... hmmm Paradoxz's Avatar
    Join Date
    Aug 2001
    Location
    Califorina
    Posts
    589
    woah, now that is weird.. so you copy exe's to a CD (exe's that work great on your HD) and then they dont work once on CD? At all? Compare the byte sizes, see if they match up.. most likely just a bad burn, or two

    Also, the path for directorys isn't c:\ bla bla bla...
    here is an example of what command lines have to look like in Flash:
    "%ORG%\\NOTEPAD.EXE %ORG%\\README.TXT"

    -Prostorm Designs

  6. #6
    Junior Member
    Join Date
    May 2001
    Posts
    22
    Paradoxz

    Following on from from your last post, does this mean that :


    on (release) {
    fscommand ("exec", "\software\star\setup.exe");
    }


    should look like this:

    on (release) {
    fscommand ("exec", "%software%\\%star%\\setup.exe");
    }




  7. #7
    Blood elf, or PHP guru... hmmm Paradoxz's Avatar
    Join Date
    Aug 2001
    Location
    Califorina
    Posts
    589

    this will boggle your mind

    Here is what I mean EXACTLY

    Note: (\\) is needed where you expected only a single backslash (\). This is necessary in Flash 5 because the backslash character is used to escape characters in strings. See About Data Types (p.43) in the Action Script Reference Manual for details.

    This means: Use two backslashes

    c:\\joe\\bob\\took\\a\\shower\\thankgod.exe

  8. #8
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766

    If you get desperate, take a look at these examples. One works with a PDF that's been compiled into the EXE and the other works with an external PDF file. Both examples will work from a CD or hard drive without any changes.

    http://www.northcode.com/cgi-bin/dlo...s/internal.zip
    http://www.northcode.com/cgi-bin/dlo...s/external.zip

    You can also use SWF Studio (www.northcode.com) to make sure that the PDF extension is registered before you try to open a PDF file. You could then pop up a wanring or automatically start the Acrobat Reader setup from your CD.


  9. #9
    For an quick an easier solution try

    *********** JTools - JStart

    JStart can enhance the powers of the Exec command to it's full potential allowing the executions of program, parameters, the opening of files with their default editors or programs. This opens up many opportunities into the operations you can control by the Flash file.

    You can launch any file and it will open up in the program which the user has associated with that file. This means that you won't have to distribute the program as well. As with all JTools, JStart is a very small program and you will only ever have to distribute one copy of it as it runs on the parameters the projector file sends it.

    JStart can run almost any file such as:

    Avi's, PDF, Doc, Bitmaps, Tiffs, JPEG's, MP3, HTML

    http://jtools.***********.com


  10. #10
    Blood elf, or PHP guru... hmmm Paradoxz's Avatar
    Join Date
    Aug 2001
    Location
    Califorina
    Posts
    589
    SWF Studio ** Jester..

    Ummmmm, go with SWF Studio, if the real thing's anything like the trial, you'll be amazed! And well, not to bash, Jester isn't that impressive.

    -Prostorm Designs

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