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.
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.

Can anyone assist me and provide me a vb.net sample code? Thanks.

Re: How to programatically read a text file on pc from device applicat by Juggs

Juggs
Sun Aug 20 22:08:28 CDT 2006

Nazri - there are no standard remote APIs that can help in the direction you
desire. You would have to code up a desktop side module that you can use
from device side to stream you the file from the desktop. Once you have the
desktop side appllication, you could use CeReadFile/CeWriteFile APIs to get
the file down to the device and then back up again or you could use winsock
and communicate over sockets with the desktop side module to get the raw
data across.

Providing APIs would be a security issue since you are trying to get desktop
side info from the cradled device.
Juggs Ravalia [MSFT]
jayrava@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

"Nazri" <Nazri@discussions.microsoft.com> wrote in message
news:E1B698A3-84E2-44A4-B2C4-082411ACDBA4@microsoft.com...
> 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.
> 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.
>
> Can anyone assist me and provide me a vb.net sample code? Thanks.



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