Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copy files from PocketPC to desktop computer?

3 views
Skip to first unread message

George Ivanov

unread,
May 18, 2005, 3:32:38 AM5/18/05
to
I need to copy files from Pocket PC device to desktop computer, is it
posssible any file access to br initiated from device to desktop?

*** Sent via Developersdex http://www.developersdex.com ***

Sergey Bogdanov

unread,
May 18, 2005, 4:34:00 AM5/18/05
to
Well, there is no out of the box solution (as for example RAPI, for file
transfer from Desktop to PDA). However, there are several ways to
achieve it:

1. Install FTP server for desktop, then from your application use
OpenNETCF.Net.FTP [1] or [2];
2. By using HTTP Server (through PUT or POST method), see Alex Feinman's
example [3];
3. Use shared folder;
4. For desktop write a server application (socket based) then when PDA
is cradled it can comunicate with desktop through the known port.

[1] http://www.opennetcf.org/sdf/
[2] http://www.sergeybogdanov.com/samples/TestFTP.zip
[3] http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip

--
Sergey Bogdanov
http://www.sergeybogdanov.com

Jeremy

unread,
May 18, 2005, 9:14:32 AM5/18/05
to
The easiest (most error-prone?) way of doing it is using File.Copy(fromURI,
toURI); if you are accessing a network resource you will probably be asked
by the OS to enter your credentials.

"George Ivanov" <gsiv...@yahoo.com> wrote in message
news:%23kCwFv3...@tk2msftngp13.phx.gbl...

George Ivanov

unread,
May 26, 2005, 6:13:36 AM5/26/05
to
I have network share folder on Desktop computer, but how can I access it
from Pocket PC. The OpenFileDialog don't show it as option and am
accessing only folders of the device.

Sergey Bogdanov

unread,
May 26, 2005, 7:47:41 AM5/26/05
to
This code snippet should work for you:

System.IO.File.Copy(@"\file", @"\\destination\destinationDir\file");

Junior

unread,
Jul 22, 2005, 5:28:04 PM7/22/05
to
Gee... I shared a folder all the way and ran the code, but an IOException was
raised right away... Never thought such a simple idea worked. Did you get it
working this way ?

Sergey Bogdanov

unread,
Jul 23, 2005, 2:33:45 AM7/23/05
to
Yep, it works for me. IOException could be thrown because file already
exists, try this instead:

System.IO.File.Copy(@"\file", @"\\destination\Shared\file", true);

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

0 new messages