Copy a File to The Emulator

  • Thread starter Thread starter Jeff Gaines
  • Start date Start date
J

Jeff Gaines

I am using VS 2003 to learn to develop apps for Pocket PC to run
on my iPAQ.

To test one on the emulator I need it to have access to a text
file.

Is it possible to copy a file to the emulator? If so how?

I have asked in ms.public.pocketpc.developer and I got a couple
of replies suggesting 'remote file viewer' but I think this may
be an embedded C++ tool?

Many thanks.
 
If you add the file to your project and set its type to content then it
should be copied to the emulator when you deploy.

Ali Gardezi

Ali

Many thanks for that - it has worked :-)

I have had to hard code the path into the app since I don't seem
to have access to 'Application.StartupPath' although help seems
to imply I should in the .NET compact framework.
In fact the only options available in 'Application' are
DoEvents, Exit and Run.
Is there a way to find the app's path?
 
it is possible to get the applications executing path:
string path;
path = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );

Ali Gardezi

Many thanks Ali, I think the filtering on my help is a but
haywire!
 
Back
Top