|
From: Rodrigo Defavari on 7 May 2008 10:23 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 7 May 2008 11:03 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 7 May 2008 13:58 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:///", ""))
|
Pages: 1 Prev: VS2008 fails to generate dataset Next: Cant write to a file!!! |