|
|||
|
Need help again
![]() I'm making a frontend like Windows Media Center but doing so I need to give commandlines to programs to open files. For example I should be able to do: Paint.exe -sample.bmp Where sample.bmp is the file it should open when executed, works great but...sample.bmp should be in the directory where Paint.exe is located, right now it thinks the folder where the SWFkit project is executed is 'home' and looks for sample.bmp there. Help? |
|
|||
|
Code:
var filename = getFullPathName(Application.cmdItems[0]);
trace(filename);
function getFullPathName(fname) {
var index = fname.indexOf(":");
if (index >= 0) return fname;
return getAppDir() + fname;
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|