|
|||
|
Can anyboy help me?
When i start Shell.run("C:\\Eigene Dateien\\midi.exe"); it will execute in another folder. How can i definate the destination wher midi.exe execute? (midi.exe execute always the folder which i definated befor with Dialogs.fileOpen methode, but i want to definate without a selection) thx Hochi |
|
|||
|
No the midi.exe is in C:\Eigene Dateien
but when i start it wiht shell run, Code:
Shell.run("C:\\Eigene Dateien\\midi.exe");
and i think that this is because, befor i stat shell run, i brouse Pictures with Dialogs.fileOpen methode. if i brouse befor with var Code:
f = Dialogs.browse("Test'', "c:\\'');
i want to select the Folder without Dialogs.browse to execute the midi.exe in this Folder |
|
|||
|
The Shell.run method doesn't set the working directory of the new process, so it always uses the current directory of the main process. We will add the feature in the next version.
In Swfkit pro, u can do like this Code:
Dll.registerFunction("kernel32.dll", "SetCurrentDirectoryA",
"setCurDir", "stdcall", "long", "string");
var exename = "C:\\Eigene Dateien\\midi.exe";
var file = new File(exename);
trace(setCurDir(file.parentPath));
Shell.run(exename);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|