Re: How to programatically read a text file on pc from device applicat by r_z_aret
r_z_aret
Tue Aug 22 13:23:14 CDT 2006
On Sat, 19 Aug 2006 20:54:02 -0700, Nazri
<Nazri@discussions.microsoft.com> wrote:
>Hello everybody ...
>when i activesynch my pocket pc to a desktop pc , how do i use vb.net code
>to read a text file contents located on a folder on the desktop pc from my
>pocketpc wm5 application? I tried the openfile dialog for my user but it will
>only show the pocket pc device folders and no way of showing the pc folders.
Yep, that function is limited.
>I want to be able to give my app user a way to read a text file contents from
>the desktop pc and write back the contents into a text file on the pocket pc
>when linking via activesynch.
You could share a file on the desktop and then use CreateFile and
relatives with UNC (Universal Naming Convention). Or you could run an
FTP server on the desktop and FTP client code on the Pocket PC.
Neither needs an ActiveSync connection, although ActiveSync does
provide a tcp/ip connection.
Nothing for the Pocket PC side uses ActiveSync directly. RAPI
(CeCreateFile and relatives) shares the ActiveSync transport
mechanism.
>
>Can anyone assist me and provide me a vb.net sample code? Thanks.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com