Copy files from PC to PDA (in code!)

F

Factor

Greetings fellow PDA developers,

I am working on a PC side interface software for my Windows Mobile 5.0
device and I have some how-to questions regarding a few things. I fear
I may be attempting the impossible. Let me know what you think.

(1)
Using PC software, I want to copy a file from the PC to the PDA. Is
this possible? The "Mobile Device" does not appear to be one of the
Environment.SpecialFolders, but is there another way to find it? It's
almost like a drive, but cannot be accessed as such.

(2)
Assuming there is a solution to that, is there a way to detect if the
PDA is synced with active sync to warn the user if the device is not
attached? I guess I can simply Try the solution to #1 and Catch when
it errors and take that as "No PDA available." Any ideas?

(3)
Once the file (it's CAB file) is copied over, I want to install it
automatically. I don't care if they need to confirm it with a pop-up
on the PDA, but I'll save my non-tech-savvy users from navigating file
explorer.. which is most of my users.


Any help, ideas, or suggestions will be appreciated. Even a "that's
impossible!!" would be appreciated, so I can find an alternative.

Thank you and goodnight!

Jason
 
G

Ginny Caughey [MVP]

Jason,

What you need is the Remote API (Rapi). It's what Activesync uses
internally, and rapi.dll gets installed with Activesync. There is a managed
code wrapper for Rapi on www.opennetcf.org in the Desktop.Communication
section.
 
G

Guest

1. Google RAPI - you'll get what you need - you might look at
www.opennectf.org/communication for a library
2. RAPI will tell you if you're connected or not.
3. Again, with RAPI you can execute an app, so you're run wceload.exe with
the path to the CAB
 
F

Factor

Thank you everyone for your help. This was all pretty easy once I had
my starting point (RAPI). I appreciate everything mentioned here and I
hope to be able to help all of you in some way in the future.

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top