I run into the same problem i guess with the flash projector and opening files that are on the CD. So far i was using a bit different method for opening the files, basically i was using a simple C++ code and then compiling it using a .bat into a .exe and then i was running the .exe file from flash to open usually .pdf files. I was wondering if there is a way to include the proxy.exe into a single EXE file instead of using a BAT and an EXE file. I am posting the code i was using until now. I guess this is a questions for Northcode.
It would be great for everybody i think if we can find a solution like this, it would make it a bit simpler, If you need more information let me know.
The BAT file could be compiled into an EXE file but the BAT file still has to be extracted so it can be run. The problem with this approach is the path. Since the BAT file won't be in the same folder (not even on the same drive) as the files you want to access how do you specify where to find the files? It could be passed in as a parameter I guess, but then you force people to understand a bit more about BAT files than they want to know, and they already hate all problems related to paths
Hi, Im using proxy.exe to open some video files in a cd-rom and everything works amazing; but when I open it in Windows Vista the files don't open, only opens the application...
the .bat file (conferencia1.bat) has this line:
start conferencia1.wmv
You don't need to use Start with presentation.exe, you can just run the executable directly. If you move presentation.exe into the FScommand folder then you don't even need to use proxy to launch it. The only reason to use proxy would be if presentation.exe needs to load some other files that you want to keep all in the same directory and not in fscommand.
If word is getting launched then start can read the file name (to know it's a DOC file) but for some reason that's not getting passed to Word.
Can you try moving the DOC file into the FScommand folder and changing your start command to something like this..
start file.doc
The only other thing I can think of is that somehow the registry entry that tells Windows what application to use to open DOC files has been modified so that it doesn't work any more. Can you still double click on DOC files and have them open without errors?
Hi, I have the same problem with word files. Just have all the files in the fscommand folder with the .bat and the .exe files, but it still opens only the application and not the files. Is there anything wrong?
the button code is this:
on(release){
fscommand("exec","conf1.exe");
}
and the .bat file named conf1.bat says:
start conf1.doc
I'm working in win XP and the last version of Microsoft Word
Last edited by julperpub; 05-06-2008 at 12:47 PM.
If you don't do it with passion, then just don't do it.
First off Great thread and great little tools. You Rock!
Copy2
I have been working like the dickens to get this to work. I can run the proxy.exe file from the fscommand folder and it works like a champ.
When I try to run it from the button inside of Flash (as3) it gives me an error:
"UNC paths are not supported. Defaulting to windows directory.
The system cannot find the file specified."
Where am I going wrong?
here is my .bat file:
copy2 /f banner.jpg /m file has been saved /c My CD-ROM File Manager
I have the banner.jpg in the fscommand folder as well as in the next folder up.
I am about out of hair.
I'm guessing that tou're seeing that error because FSCommand EXEC is Broken in Flash CS3. If you get the latest copy from my blog it should fix your problem. The version number on the latest version of proxy.exe is 3.0.0.0. If your version is older (or doesn't have a version number) then you NEED the new one.
julperpub I have seen this issue with Vista, but not with XP. On Vista, when you use the builtin start command works if you launch the BAT file manually, but it fails when you call the BAT file from an EXE file.
I'm going to update my invoke utility to allow it to be used as a replacement for the start command and see if I can get that working on Vista (and XP). I'll most likely post it as a new tool on my blog instead of here, watch there for updates - email me if you get desperate (it will take longer to write up the post than update the utility).
How do I get a flash exe (menu) to run the exe files made by northcode? for some reason it want start them, the screen just blinks and nothing happens.
julperpub I have seen this issue with Vista, but not with XP. On Vista, when you use the builtin start command works if you launch the BAT file manually, but it fails when you call the BAT file from an EXE file.
I'm going to update my invoke utility to allow it to be used as a replacement for the start command and see if I can get that working on Vista (and XP). I'll most likely post it as a new tool on my blog instead of here, watch there for updates - email me if you get desperate (it will take longer to write up the post than update the utility).
Thank's northcode, I kinda solved it temporarly, so there's no rush anymore; but still I'll be waiting for that utility update,
Last edited by julperpub; 05-29-2008 at 11:21 AM.
If you don't do it with passion, then just don't do it.
I downloaded the example files for this proxy.exe application but even that doesn't seem to be working. I am on XP though, if this is a problem. So has anyone got this working with CS3 on XP, or is it not possible?
It doesnt display the black bat file box but simply displays a message saying that the file cant be found, even though its definitely there, I just seem like somethings wrong if all these people have had luck with it!!
First, make sure you have the latest version of proxy.exe from here. Then explain how you've set things up (directory structure and files) and I'll see if I can figure out what's going wrong for you.
I managed to get it working in the end. The file was on a network drive it works fine on the local drive. Thanks for that, you saved me a lot of hassle!!
I am wondering if proxy.exe requires that all of the commands in the batch file it calls be executed within a certain amount of time. I am using it to call a two-line batch file, the first line executes a program App1.exe and the second line executes another program App2.exe. I execute the first program without the START command so that the second line does not execute until the App1.exe process terminates. This works fine when I run the batch file itself - but I get the ugly DOS window.
So, I tried to execute it using your proxy.exe. However, I have found that the second program App2.exe will only run if the first application App1.exe terminates operation within 2-3 seconds of it starting. Is this the result of how proxy.exe operates?
Any help would be appreciated because this program is a great solution to my problem, assuming I can get it to execute both lines of my batch file.
Yes, proxy kills the BAT file after 5 seconds to avoid problems on some operating systems where the BAT file can hang around (hidden) forever. Since you can't see them you can't easily clean them up. I got your email (at least I think it was you) and I can send you a version of proxy with an extended (or infinite) timeout period.