Hello People!!


I need to know which was the directory in that my application was
started. I use VB 2005 with pocket pc 2003 application.

I need this to load a XML file, that file is in the same directory of
the my application.


thanks a lot!


--



Rodrigo Defavari
Desenvolvedor
AKBIT Solutions Ltda. Tel: (19) 3408-1615
rodrigo.defavari@akbit.com

Re: Application Directory by Fatih

Fatih
Wed May 07 10:03:11 CDT 2008

On 7 May=FDs, 17:23, "Rodrigo Defavari" <rodrigo.defav...@gmail.com>
wrote:
> Hello People!!
>
> I need to know which was the directory in that my application was
> started. I use VB 2005 with pocket pc 2003 application.
>
> I need this to load a XML file, that file is in the same directory of=

> the my application.
>
> thanks a lot!
>
> --
>
> Rodrigo Defavari
> Desenvolvedor
> AKBIT Solutions Ltda. Tel: (19) 3408-1615
> rodrigo.defav...@akbit.com

Try this,

Path.GetFullPath(System.Reflection.Assembly.GetExecutingAssembly().GetName()=
.CodeBase.Replace("file:///",
""))

Re: Application Directory by Rodrigo

Rodrigo
Wed May 07 12:58:31 CDT 2008

It worked very well!

Thanks a lot !!!!


Rodrigo Defavari

"Fatih" <efatihan@gmail.com> escreveu na mensagem
news:3fd7a19e-e988-4347-b147-aab7042acf62@56g2000hsm.googlegroups.com...
On 7 Mayýs, 17:23, "Rodrigo Defavari" <rodrigo.defav...@gmail.com>
wrote:
> Hello People!!
>
> I need to know which was the directory in that my application was
> started. I use VB 2005 with pocket pc 2003 application.
>
> I need this to load a XML file, that file is in the same directory of
> the my application.
>
> thanks a lot!
>
> --
>
> Rodrigo Defavari
> Desenvolvedor
> AKBIT Solutions Ltda. Tel: (19) 3408-1615
> rodrigo.defav...@akbit.com

Try this,

Path.GetFullPath(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.Replace("file:///",
""))