How can i use the application path

Login to reply to this topic.
Fri, 2008-05-23 08:53
Joined: 2004-12-07
Forum posts: 72

I have an application and the path is:epoc32\release\winscw\udeb\example.exe
I hope to use this application with emulator. How can I use it as a file name?

I used like the following, but it did not work
TFileName fileName;
fileName = _L("epoc32\\release\\winscw\\udeb\\example.exe");

which way will be the corrected way?

Thanks!


Fri, 2008-05-23 09:18
Joined: 2004-11-29
Forum posts: 1232
Re: How can i use the application path

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...

Fri, 2008-05-23 10:25
Joined: 2004-12-07
Forum posts: 72
Re: How can i use the application path

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!

Fri, 2008-05-23 10:35
Joined: 2005-04-13
Forum posts: 121
Re: How can i use the application path

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

Fri, 2008-05-23 10:56
Joined: 2004-12-07
Forum posts: 72
Re: How can i use the application path

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.

Fri, 2008-05-23 11:20
Joined: 2004-05-21
Forum posts: 286
Re: How can i use the application path

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

Fri, 2008-05-23 12:49
Joined: 2004-12-07
Forum posts: 72
Re: How can i use the application path

Thanks!

I mean the path in emulator

Mon, 2008-05-26 12:28
Joined: 2004-11-29
Forum posts: 1232
Re: How can i use the application path

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

  • Login to reply to this topic.