Let's continue this over in the other thread http://www.flashkit.com/board/showth...postid=3193483 so we don't have to keep awakening this monster :)
Printable View
Let's continue this over in the other thread http://www.flashkit.com/board/showth...postid=3193483 so we don't have to keep awakening this monster :)
so that's what i was missing. I'll give it a try though and see how it goes. At first i was using START menu1.exe then north told me to use \menu1.exe
what it should have been is START \menu1.exe
i have a question though.. am i correcr in using
fscommand("exec", "menu1.exe") for the menu1.exe in thr root folder if i used START menu1.exe in the bat file in the subfolder?
thanks guys! i'll give it a try. i'll even try burning it on a cd to see if it works there.
Sorry bout that! :) this is my last post on this thread regerding this problem.:p
Tnx northcode for this nice peace of projector thingie :-)
If you don't like copy pasting, editing...
You can use this php file in your local webserver in order to create the .exe and .bat files automaticcaly.
This is how it works:
1) place the proxybatch in your "cd-rom" development root.
2) get the proxy.exe original file and place it in the cd-rom development root next to proxybatch.php
3)In your documents directory, you place your documents (eg. pdf files).
4) execute proxybatch.php in your webbrowser
The script has added a directory fscommand and copied the proxy.exe / edited an .bat file for each file individually.
Remarks are welcome!
have fun
This was the most helpful thread I read about this topic by a long shot. Everyone else only seems to know a little about it. But with your instruction and description, this was great.
I am making a dual platform CD with a flash projector on it that will allow the user to download word .docs to their computer. I have the pc side done, and have followed a number of tutotials including this one for the mac, and though everything looks good, i cant get the button to launch the doc!
All in flash 8
here is my fscommand script:
on (release) {
fscommand("exec", "launcher.scpt");
}
on (release) {
fscommand("exec", "1doc.bat");
}
here is my applescript:
tell application "Finder"
activate
select file "1.doc" of disk "Turnarond Solutions 5W's Method"
open selection
end tell
Save as/Application
Checked: Startup Screen
Not Checked: Run Only, Stay Open
I read all the 6 pages of this thread and I did not see if it is possible to do this :
PROJECTOR FILE:
===========
on (release)
{
cmd = "printrez.exe" add chr(9) add "/f Design.jpg" add chr(9) add "/m Copy success";
fscommand("exec", cmd);
}
================
BAT FILE ( printrez.bat ):
============
copy2 %1 %2 %3
===========
It does not work and I'm not sure if it is possible or what I'm doing wrong :(
I have to make ~ 20 butons which have to copy some files from CD on HDD and I dn't want to create for every file another 2 (bat & exe ) .. can you please guide me ?
10x in advance
The trick you're trying to use (passing arguments from Flash to an external EXE/BAT file) will only work with Flash 5. Macromedia made changes in versions of Flash after that to close security holes in the standalone player.
Unless you use a third party swf2exe tool (see list below), the only solution is to create 2 files for each file you want to print using your utility -- (1) a BAT file that opens the file you want and (2) a copy of PROXY.EXE renamed to the same as the BAT file to launch the BAT file and hide the DOS box.
It's a bit of a pain, but the price is right ;)
Finally, here's a list of third party ($) tools that you might want to check out...
Some third party swf2exe tools...
SWF Studio http://www.northcode.com (this one's mine)
Zinc http://www.multidmedia.com
mProjector http://www.screentime.com
Jugglor http://www.jugglor.com
now this is a bad news :( .. the problem is not about time but the directory where I have your utilities (which are great BTW :) ) .. I will have to create alot of exe and bat files .., I told you I have around 20 pictures which must be saved .. so I will need to create around 40 files there .. this will make my cd look very unprofessional :(
PS .. I don't use any other utility only yours proxy and copy2 .. which makes exactly what I want .. copy a file on computer.
Anyway good work with those utilities ;)
The extra EXE and BAT files should all be in the "fscommand" folder on the CD so it's not that bad. Most people won't bother digging around in there. I *think* you can even make this a hidden folder on the CD -- it shouldn't matter to Flash as long as the files are there when it makes the call.
I dont know what is wrong but it cant copy the files from other directories than fscomand, I have this structure :
Root:
-Dir
--Subdir
---Pic1.jpg
-Dir2
-fscomand
--1.bat
--1.exe
--copy2.exe
-start.exe
in my bat file I have this : copy2 /f \Dir\Subdir\Pic1.jpg /m Poza a fost copiata /c Copiere
i tried this way too but it did not work : copy2 /f Dir\Subdir\Pic1.jpg /m Poza a fost copiata /c Copiere
It shows the copy dialog, it recognize that the file is a jpg type and inserst the corect name .. but if I take a look in My documents .. the isn't there .. and I don't see any message after the file was/should be copied.
if found the solution :) .. to go one folder up I had to add ..\ like in th line bellow :
copy2 /f ..\Dir\Subdir\Pic1.jpg /m Poza a fost copiata /c Copiere
now my Projector is finished na working but I have a small disspaointment with those bat and exe files .. there are around 40 files in the fscommand folder :( .. BTW How much does cost SWF Studio 3? .. I tested it and it seems to be a great tool :D
thank you for your help ;) and keep up the good work :)
SWF Studio is $299 US and most of the other third party tools are hovering around the same price. If cost is a factor you can check out ScreenWeaver, which is now open source.
thankyou very much for your advices .. I will take a look on that program too , I'm adicted to open source :D
First, hi everyone!
Second, Northcode, you're awesome. I've spent the better part of today going over this thread to get my CD-ROM to work right cross-platform.
I've used your proxy.exe, and .bat files, as well as your actionscript function code to marry applescript and the exe functions together from a flash projector exe and mac version. I've also got it all to work... almost.
Now, I know I've seen this question asked in many different ways, but I've never really seen a direct specific answer to it. (except above, maybe with the copy file bat command example.)
Here's the question, how do I write the .bat file to access directories outside the fscommand directory? Or more specifically, what's the exact syntax used (code example etc.).
By using the example from above it looks like it might be like this:
============================
start ..\extras\pdfs\alpha.pdf
============================
Where extras is a directory located on the root level directory with my fscommand directory on the CD-ROM, and all my .bat and .exe files are in the fscommand dir., and the sub directories of extra is called "pdfs" and in that is my "alpha.pdf" file to start. I can't have my .bat file command of start reference any of the variable drives ids to begin the path search I know, so is what I've shown above correct? By the way, I'm mostly a MAC guy, just getting into all this.
Also, how do I write that same .bat file to open the pdf on top of the flash.exe currently being run. I saw someone mention using a command called topmost. How does this work, and can I run it with the start command in all the .bat files I will be using to launch my CDs PDfs?
Again, thanks for a great thread, and helpful information.
Regards,
g-dude
To access folders on the CD you can reference them using "\" as the first character in the path, that means the reference is relative to the root of the CD, if "extras" is in the root of the CD, then you can say this...
Check out the link below for an example of how to use my TOPMOST utility to open files on top of your projector.Code:start \extras\pdfs\alpha.pdf
http://www.flashkit.com/board/showthread.php?t=674688
Thanks, I'll give that a go on Monday morning.
One last question if you please (for now...)
How do you use the topmost command to get the example alpha.pdf to open on top of the flash.exe (projector) that's currently running?
Thanks again,
g-dude
Whoops, I didn't see your topmost example part of the post, thanks a bunch, I'll give it a look.
Well, here it is Monday morn. Thanks for all the help.
Just to note, the code for accessing directories outside the fscommand directory must have the two leader dots in front to work. So this is the correct example:
While this code without the leader dots,Code:start ..\extras\pdfs\alpha.pdf
brings back a "can not find" error.Code:start \extras\pdfs\alpha.pdf
Hope this helps others too. Man, this had been a very helpful topic. Thanks to everyone who has contributed, and especially you Northcode.
Regards,
g-dude
I'm having a problem with proxie.exe
I have an MSI file that i want to launch from the batch file. Both "proxie.exe" executable and the batch file have same names. When i run "proxie.exe" the cursor changes to an hour glass for a bit so it's doing something but then nothing happens. when I run just the batch file alone it works with no problems. What am i doing wrong?
Does your proxie support MSI files?
The proxy utility launches the BAT file in hidden mode so you don't see the DOS box appear. When the MSI launches it may be inheriting that hidden attribute from the "parent" window. Can you show me how you're launching the MSI file in the BAT file?