From: Rodrigo Defavari on
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(a)akbit.com


From: Fatih on
On 7 Mayýs, 17:23, "Rodrigo Defavari" <rodrigo.defav...(a)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...(a)akbit.com

Try this,

Path.GetFullPath(System.Reflection.Assembly.GetExecutingAssembly().GetName()..CodeBase.Replace("file:///",
""))
From: Rodrigo Defavari on
It worked very well!

Thanks a lot !!!!


Rodrigo Defavari

"Fatih" <efatihan(a)gmail.com> escreveu na mensagem
news:3fd7a19e-e988-4347-b147-aab7042acf62(a)56g2000hsm.googlegroups.com...
On 7 May�s, 17:23, "Rodrigo Defavari" <rodrigo.defav...(a)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...(a)akbit.com

Try this,

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