I am trying to find the location of my exe once it is installed on my PDA. I
thought this might work, but it turns out to be unsupported in the Compact
Framework

Label1.Text = Environment.CurrentDirectory





Suggestions?



Steve

Re: beginner's frustrations by Ginny

Ginny
Tue Jun 29 19:06:44 CDT 2004

Steve,

Windows CE doesn't have any current directory. What you want is this:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#7.1

--
Ginny Caughey
.Net Compact Framework MVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups



"Steve Howard" <steve@SpammersAreScumtomorrows-key.com> wrote in message
news:%23Rmy$GjXEHA.648@TK2MSFTNGP10.phx.gbl...
> I am trying to find the location of my exe once it is installed on my PDA.
I
> thought this might work, but it turns out to be unsupported in the Compact
> Framework
>
> Label1.Text = Environment.CurrentDirectory
>
>
>
>
>
> Suggestions?
>
>
>
> Steve
>



Re: beginner's frustrations by Tim

Tim
Tue Jun 29 19:11:07 CDT 2004

See the FAQ entry linked below.
http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ%2FStartupDirectory

--
Tim Wilson
.Net Compact Framework MVP

"Steve Howard" <steve@SpammersAreScumtomorrows-key.com> wrote in message
news:%23Rmy$GjXEHA.648@TK2MSFTNGP10.phx.gbl...
> I am trying to find the location of my exe once it is installed on my PDA.
I
> thought this might work, but it turns out to be unsupported in the Compact
> Framework
>
> Label1.Text = Environment.CurrentDirectory
>
>
>
>
>
> Suggestions?
>
>
>
> Steve
>



Re: beginner's frustrations by Steve

Steve
Tue Jun 29 21:29:03 CDT 2004


"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:OMdi2ajXEHA.952@TK2MSFTNGP10.phx.gbl...
> See the FAQ entry linked below.
> http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ%2FStartupDirectory


Got it working, thanks!


Steve



Re: beginner's frustrations by Paul

Paul
Wed Jun 30 10:23:09 CDT 2004

You need to understand that there is no such thing as a 'current directory'
on Windows CE devices, which explains the lack the CurrentDirectory
property. This question *has* been asked before. You can search the
archives here:

http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8&group=microsoft.public.dotnet.framework.compactframework

The answer is actually given at OpenNETCF, also:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=86

Paul T.

"Steve Howard" <steve@SpammersAreScumtomorrows-key.com> wrote in message
news:%23Rmy$GjXEHA.648@TK2MSFTNGP10.phx.gbl...
> I am trying to find the location of my exe once it is installed on my PDA.
I
> thought this might work, but it turns out to be unsupported in the Compact
> Framework
>
> Label1.Text = Environment.CurrentDirectory
>
>
>
>
>
> Suggestions?
>
>
>
> Steve
>



Re: beginner's frustrations by Kokie

Kokie
Thu Jul 01 09:27:09 CDT 2004

I don't know if this help (maybe I didn't understand question ;))

appPath =
Path.GetDirectoryName(Reflection.Assembly.GetExecutingAssembly.GetName.CodeB
ase.ToString)






"Steve Howard" <steve@SpammersAreScumtomorrows-key.com> wrote in message
news:%23Rmy$GjXEHA.648@TK2MSFTNGP10.phx.gbl...
> I am trying to find the location of my exe once it is installed on my PDA.
I
> thought this might work, but it turns out to be unsupported in the Compact
> Framework
>
> Label1.Text = Environment.CurrentDirectory
>
>
>
>
>
> Suggestions?
>
>
>
> Steve
>