PC Review


Reply
Thread Tools Rate Thread

Accessing local files on device

 
 
Duane Roelands
Guest
Posts: n/a
 
      1st Dec 2003
I'm a rookie, so please forigve what is almost certainly a stupid
question...

I'm writing an application to do some simply disaply of data from an
XML document. I'm familiar with the methods and properties of the XML
DOM, but what I can't seem to find is guidance on accessing the local
file system.

I can copy a file to the emulator (by using file explorer and copying
the file in question from a public share). If I have a file called
"foo.xml", how do specify that filename on the handheld?

I'm guessing that "c:\foo.xml" isn't going to cut it.

Thanks in advance.

Duane
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      1st Dec 2003
Its very similar, however there are no drive letters. The root of the system
is "\" and this contains subfolders such as My Documents, Program Files etc.
Another area where it differs is external storage - on a PC this would have
a different drive letter, however on Windows CE this is mounted as a folder
in the root of the system - e.g. "\Storage Card". For example if you placed
an xml file in your My Documents folder on the device the full path would
be:-

\My Documents\Something.xml


Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Duane Roelands" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm a rookie, so please forigve what is almost certainly a stupid
> question...
>
> I'm writing an application to do some simply disaply of data from an
> XML document. I'm familiar with the methods and properties of the XML
> DOM, but what I can't seem to find is guidance on accessing the local
> file system.
>
> I can copy a file to the emulator (by using file explorer and copying
> the file in question from a public share). If I have a file called
> "foo.xml", how do specify that filename on the handheld?
>
> I'm guessing that "c:\foo.xml" isn't going to cut it.
>
> Thanks in advance.
>
> Duane



 
Reply With Quote
 
Duane Roelands
Guest
Posts: n/a
 
      2nd Dec 2003
Thanks, Peter! This is exactly the sort of answer I was looking for.

Duane

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Its very similar, however there are no drive letters. The root of the

system
> is "\" and this contains subfolders such as My Documents, Program Files

etc.
> Another area where it differs is external storage - on a PC this would

have
> a different drive letter, however on Windows CE this is mounted as a

folder
> in the root of the system - e.g. "\Storage Card". For example if you

placed
> an xml file in your My Documents folder on the device the full path would
> be:-
>
> \My Documents\Something.xml
>
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Duane Roelands" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I'm a rookie, so please forigve what is almost certainly a stupid
> > question...
> >
> > I'm writing an application to do some simply disaply of data from an
> > XML document. I'm familiar with the methods and properties of the XML
> > DOM, but what I can't seem to find is guidance on accessing the local
> > file system.
> >
> > I can copy a file to the emulator (by using file explorer and copying
> > the file in question from a public share). If I have a file called
> > "foo.xml", how do specify that filename on the handheld?
> >
> > I'm guessing that "c:\foo.xml" isn't going to cut it.
> >
> > Thanks in advance.
> >
> > Duane

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing files in mobile device programmatically from a PC Shade Microsoft Dot NET Compact Framework 2 7th Mar 2008 06:35 PM
Cannot copy file msg accessing files with local language characters in name thru a LAN paulo@home.com Windows XP General 0 15th Nov 2006 05:24 PM
"Cannot copy file" accessing files with local language characters in name thru a LAN Paulo@home.com Windows XP General 0 14th Nov 2006 09:57 PM
Accessing offline files from a different local account. Nico Alberti Windows XP General 0 30th Nov 2004 01:21 PM
xp asks for non-existing password if accessing shared files on local net Zop Windows XP Help 0 3rd Dec 2003 11:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 PM.