I'm confused about how the emulator works. I have a simple program
that works fine on my device (Smartphone). One of the things the
program does is create a text file with no path information, as in

using ( System.IO.StreamWriter sw =
newSystem.IO.StreamWriter(@"Q123.txt") )

When I run the app in the emulator, no error is generated, but I
cannot find the Q123.txt file. I've even searched my entire desktop
machine for the file and it is not found.

Can you someone straighten me out on how the emulator handles files
created as in the code above?

Thanks,
RM

Re: Location of file created in Emulator? by RCM

RCM
Fri Jul 01 19:46:02 CDT 2005

Another piece of information. I think I'm not understanding what the
"emulator" is. I found this reference as part of my searching:

>> You can copy files to the device by adding them to your project
>> with the "Build Action" property set to "Content" this will copy
>> them to your application directory on the emulator, you can move
>> them around manually using the File Explorer application on the
>> emulator.
>>
>> You could also use Alex Feinman's EmuCopy tool:-
>> http://www.opennetcf.org/forum­s/topic.asp?TOPIC_ID=613
>>
>>
>> Peter
>> --
>> Peter Foot
>> Windows Embedded MVP
>> OpenNETCF.org Senior Advisor

How do I get the "File Explorer" application in the emulator? The
emulator that I am using just has two main menu choices: "Emulator"
(with sub choices Pause, Hard Reset, Soft Reset, and Shutdown), and
"Help". If I choose Help/About, it says "Emulator for Windows CE"
Version 4.1.0.(Build14).

Thanks,
RM



On Fri, 01 Jul 2005 20:25:07 -0400, RCM <none@aol.com> wrote:

>I'm confused about how the emulator works. I have a simple program
>that works fine on my device (Smartphone). One of the things the
>program does is create a text file with no path information, as in
>
>using ( System.IO.StreamWriter sw =
> newSystem.IO.StreamWriter(@"Q123.txt") )
>
>When I run the app in the emulator, no error is generated, but I
>cannot find the Q123.txt file. I've even searched my entire desktop
>machine for the file and it is not found.
>
>Can you someone straighten me out on how the emulator handles files
>created as in the code above?
>
>Thanks,
>RM
>


RE: Location of file created in Emulator? by JarodLavay

JarodLavay
Fri Jul 01 19:53:02 CDT 2005

If you do not specify the absolute path of the file it will be created in the
root folder of the device. Use the File Explorer in the emulator and in the
drop down list in the upper left corner change to the top most folder. You
should find your file there.

Jarod

"RCM" wrote:

> I'm confused about how the emulator works. I have a simple program
> that works fine on my device (Smartphone). One of the things the
> program does is create a text file with no path information, as in
>
> using ( System.IO.StreamWriter sw =
> newSystem.IO.StreamWriter(@"Q123.txt") )
>
> When I run the app in the emulator, no error is generated, but I
> cannot find the Q123.txt file. I've even searched my entire desktop
> machine for the file and it is not found.
>
> Can you someone straighten me out on how the emulator handles files
> created as in the code above?
>
> Thanks,
> RM
>
>
>

Re: Location of file created in Emulator? by Alex

Alex
Fri Jul 01 20:07:35 CDT 2005

Since Pocket PC SDK 2002 emulators shipped with the SDK are virtual machines
with their own file system. Hence it is pointless to look for an emilator
file on your own machine hard drive

--
Alex Feinman
---
Visit http://www.opennetcf.org
"RCM" <none@aol.com> wrote in message
news:umnbc15nrgp80fgpi2nu0hmg2ojhq8th52@4ax.com...
> I'm confused about how the emulator works. I have a simple program
> that works fine on my device (Smartphone). One of the things the
> program does is create a text file with no path information, as in
>
> using ( System.IO.StreamWriter sw =
> newSystem.IO.StreamWriter(@"Q123.txt") )
>
> When I run the app in the emulator, no error is generated, but I
> cannot find the Q123.txt file. I've even searched my entire desktop
> machine for the file and it is not found.
>
> Can you someone straighten me out on how the emulator handles files
> created as in the code above?
>
> Thanks,
> RM
>
>


Re: Location of file created in Emulator? by Daniel

Daniel
Sun Jul 03 07:03:25 CDT 2005

Ignore the two menu items you refer to and move your mouse cursor in the
emulator image itself.

Does the title bar read "Pocket PC 2002"? Click on the windows icon in the
top left corner (next to the rocker), choose Programs and there you'll see
File Explorer.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"RCM" <none@aol.com> wrote in message
news:voobc1du36leqiteig7nl8jlp2d5fef302@4ax.com...
> Another piece of information. I think I'm not understanding what the
> "emulator" is. I found this reference as part of my searching:
>
>>> You can copy files to the device by adding them to your project
>>> with the "Build Action" property set to "Content" this will copy
>>> them to your application directory on the emulator, you can move
>>> them around manually using the File Explorer application on the
>>> emulator.
>>>
>>> You could also use Alex Feinman's EmuCopy tool:-
>>> http://www.opennetcf.org/forum­s/topic.asp?TOPIC_ID=613
>>>
>>>
>>> Peter
>>> --
>>> Peter Foot
>>> Windows Embedded MVP
>>> OpenNETCF.org Senior Advisor
>
> How do I get the "File Explorer" application in the emulator? The
> emulator that I am using just has two main menu choices: "Emulator"
> (with sub choices Pause, Hard Reset, Soft Reset, and Shutdown), and
> "Help". If I choose Help/About, it says "Emulator for Windows CE"
> Version 4.1.0.(Build14).
>
> Thanks,
> RM
>
>
>
> On Fri, 01 Jul 2005 20:25:07 -0400, RCM <none@aol.com> wrote:
>
>>I'm confused about how the emulator works. I have a simple program
>>that works fine on my device (Smartphone). One of the things the
>>program does is create a text file with no path information, as in
>>
>>using ( System.IO.StreamWriter sw =
>> newSystem.IO.StreamWriter(@"Q123.txt") )
>>
>>When I run the app in the emulator, no error is generated, but I
>>cannot find the Q123.txt file. I've even searched my entire desktop
>>machine for the file and it is not found.
>>
>>Can you someone straighten me out on how the emulator handles files
>>created as in the code above?
>>
>>Thanks,
>>RM
>>
>