|
|||
|
I have 2 exe files created with SWFKit. The 2nd EXE is supposed to open from the 1st exe. The problem is that I want the 1st EXE to pass variables to the 2nd EXE.
How can I do that? ---------------- second question (associated with the same problem) Currently I am writing a txt file and when I open the second EXE i read that file and get the data(then I delete it). The problem is that if there is a time delay to the writing of the txt file from the 1st EXE the 2nd EXE will open, will not find the file and "die". So the question is can I write data in a file, CONFIRM that it has been written and the file exists and ONLY then open the 2nd EXE? Thanx in advance... |
|
|||
|
To ensure that the txt file has been created, you just need to call the Shell.run method after the FileStream object has been closed
Code:
import SWFKit.*;
var fs = new FileStream(getAppDir() + "1.txt", "w");
fs.write("blahblahblah");
...
fs.close();
fs.Release();
Shell.run(_root.$EXE + " " + getAppDir() + "1.txt");
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|