PC Review


Reply
Thread Tools Rate Thread

Copy files from PocketPC to desktop computer?

 
 
George Ivanov
Guest
Posts: n/a
 
      18th May 2005
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 ***
 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      18th May 2005
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....HttpUpload.zip

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


George Ivanov wrote:
> 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 ***

 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      18th May 2005
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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 ***



 
Reply With Quote
 
George Ivanov
Guest
Posts: n/a
 
      26th May 2005
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.



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      26th May 2005
This code snippet should work for you:

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


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


George Ivanov wrote:
> 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.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***

 
Reply With Quote
 
=?Utf-8?B?SnVuaW9y?=
Guest
Posts: n/a
 
      22nd Jul 2005
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" wrote:

> This code snippet should work for you:
>
> System.IO.File.Copy(@"\file", @"\\destination\destinationDir\file");
>
>
> --
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> George Ivanov wrote:
> > 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.
> >
> >
> >
> > *** Sent via Developersdex http://www.developersdex.com ***

>

 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      23rd Jul 2005
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


Junior wrote:
> 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" wrote:
>
>
>>This code snippet should work for you:
>>
>>System.IO.File.Copy(@"\file", @"\\destination\destinationDir\file");
>>
>>
>>--
>>Sergey Bogdanov
>>http://www.sergeybogdanov.com
>>
>>
>>George Ivanov wrote:
>>
>>>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.
>>>
>>>
>>>
>>>*** Sent via Developersdex http://www.developersdex.com ***

>>

 
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
How do I copy all Excel files from old computer to new computer? =?Utf-8?B?UmZhcnNo?= Microsoft Excel Misc 2 20th Dec 2005 03:23 AM
How do I share/copy E-Mails from my desktop computer onto my Lap. =?Utf-8?B?QVJDLVNUVURJT1M=?= Microsoft Outlook Discussion 1 10th Nov 2004 06:30 PM
How do I copy contacts from my pocketpc to my computer? =?Utf-8?B?Zml4ZW0=?= Microsoft Outlook Contacts 2 28th Sep 2004 05:07 PM
How to synchronize a small notebook to a desktop like a PocketPC to a desktop Juan I. Cahis Microsoft Windows 2000 1 4th Apr 2004 08:31 PM
copy a file from pc to pocketpc (pocketpc initiated!) =?Utf-8?B?UGlldGVy?= Microsoft Dot NET Compact Framework 0 4th Mar 2004 02:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 AM.