How can i use the application path
| Fri, 2008-05-23 08:53 | |
|
I have an application and the path is:epoc32\release\winscw\udeb\example.exe I used like the following, but it did not work which way will be the corrected way? Thanks! |
|
| Fri, 2008-05-23 08:53 | |
|
I have an application and the path is:epoc32\release\winscw\udeb\example.exe I used like the following, but it did not work which way will be the corrected way? Thanks! |
|
Forum posts: 1232
Your question is a bit confusing...
The folder \epoc32\release\winscw\udeb\ is accessible as z:\sys\bin\ from within the emulator.
But why do you need it?
To "use it with the emulator" you simply run it...
Forum posts: 72
Sorry for the confusion.
My meaning is that: I will start epoc32\release\winscw\udeb\example.exe from another application.
How can I spesify its path.
Thanks!
Forum posts: 121
Use RProcess.
eg
_LIT(KPROCESSNAME,"example*");
TFindProcess findProcess(KPROCESSNAME);
TFullName name;
if (findProcess.Next(name) != KErrNone)
{
RProcess xProcess;
TInt res=xProcess.Create(_L("example"),KNullDesC);
xProcess.Resume();
}
Jupitar
Forum posts: 72
Thanks!
No, Sorry, I can not use RProcess because I use RScheduler llike this:
TFileName fileName;
fileName = _L("epoc32\\release\\winscw\\udeb\\example.exe");
User::LeaveIfError(iScheduler.Register( fileName, CActive::EPriorityStandard ));
So I hope to know how to get the path of this application.
Forum posts: 286
One way is to give Path like \\sys\\bin\\example.exe. If you are sure the drive in which it is present then even mention drive.
Cheers,
Sri
Forum posts: 72
Thanks!
I mean the path in emulator
Forum posts: 1232
The path in emulator is \\sys\\bin\\example.exe
The folder \epoc32\release\winscw\udeb\ is accessed as z:\\sys\\bin\\ from within the emulator.
Also everything under \epoc32\release\winscw\udeb\z\ is the emulators z:\-drive.
And everything under \epoc32\data\c\ is the emulators c:\-drive