In project I added folder â??Dataâ?? with â??Config.datâ?? file. I changed property
of Config.dat file to Content and property of â??Copy to Outputâ?? to â??Copy
alwaysâ??.

Now from the code I try to access that file:

If File.Exists("C:\Project\Data\Config.dat") = True Then
MessageBox.Show("File Found")
Else
MessageBox.Show("File Not Found")
End If

I got "File Not Found".

Re: How can I see files from project using Emulator? by Chris

Chris
Tue Apr 29 13:36:29 CDT 2008

Don't start another thread for the same question. You're getting answers in
the other thread, so keep your question there.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

"Nina" <Nina@discussions.microsoft.com> wrote in message
news:06B75555-E62C-4D12-8010-5CF10BC780A7@microsoft.com...
> In project I added folder "Data" with "Config.dat" file. I changed
> property
> of Config.dat file to Content and property of "Copy to Output" to "Copy
> always".
>
> Now from the code I try to access that file:
>
> If File.Exists("C:\Project\Data\Config.dat") = True Then
> MessageBox.Show("File Found")
> Else
> MessageBox.Show("File Not Found")
> End If
>
> I got "File Not Found".
>
>