Skip to main content
Email Password   helpLost your password?

Introduction

This utility (rcmd.exe) can copy files and folders (with subfolders) to PocketPC or from PocketPC to desktop PC. I integrated this tool into "Send To" menu. And now I am able to copy any file/folder to my device without opening ActiveSync's browser. This tool is also useful for some kind of automation.

This is a command-line Win32 application which uses RAPI to work with PocketPC. To run this utility, you should have ActiveSync installed in Desktop PC.

Windows CE Remote API

With RAPI, you can write data to or read data from a Windows CE-based device remotely with a desktop computer. This API support various functions:

This API also allows to execute applications and call a function from a DLL inside PocketPC. I think it's a great API for automating PocketPC from Desktop.

Using the sources

To build the project, you need to setup eMbedded Visual Tools (or PocketPC SDK), and setup directories in Visual C++ 6.0. Add ActiveSync inc\ and lib\ folders. Use menu Tools -> Options -> directories tab. In my case, I added C:\Windows CE Tools\wce300\MS Pocket PC\support\ActiveSync\inc (and \lib) folders.

The sources consist of a CRapi class and main module. CRapi.cpp has some public methods:

//

// copy files (with subfolders, by mask) between Destop <-> PocketPC.

//

// parameters:

//  par1 - path to copy from 

//  par2 - path to copy to

//

//  The paths may be from Desktop or PockePC

// (but both can not be from one target)

int CRapi::copy(LPCTSTR par1, LPCTSTR par2, LPCTSTR par3, LPCTSTR par4)
...
...

//

// Delete files by mask

//

//

int CRapi::del(LPCTSTR par1, LPCTSTR par2, LPCTSTR par3, LPCTSTR par4)
...
...

//

// Show files and folders

//

// dir c:\*

// dir \temp\*

// dir "\my documents\*" 

//

int CRapi::dir(LPCTSTR par1, LPCTSTR par2, LPCTSTR par3, LPCTSTR par4)
...
...

//

// Rinning application in PPC 

//

int CRapi::run(LPCTSTR par1, LPCTSTR par2, LPCTSTR par3, LPCTSTR par4)
...
...

//

// enumerates DataBases in PPC

//

int CRapi::db(LPCTSTR par1, LPCTSTR par2, LPCTSTR par3, LPCTSTR par4)
...
...

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralThanks Pin
Alexander Gorshkov
7:43 17 Jan '09  
GeneralBuffer overun Pin
Member 4145128
21:23 7 Mar '08  
GeneralCopying Pin
fdgf
12:20 16 Dec '07  
Generalwhy buffer size is 5006 Pin
AgunJ
23:51 27 Aug '07  
QuestionSD card directory Pin
ugroczkycs
4:22 14 Nov '06  
AnswerRe: SD card directory Pin
Alexander Shilonosov
3:57 15 Nov '06  
Questionpossible to convert to vb .net Pin
athinarayanan
4:26 2 Nov '06  
GeneralBug fix : memory leak [modified] Pin
Vincent_RICHOMME
5:56 10 Jul '06  
GeneralHow to add to "Send to" meu ?? Pin
julian_hung
0:47 10 Jun '06  
GeneralRe: How to add to "Send to" meu ?? Pin
Alexander Shilonosov
4:01 15 Nov '06  
GeneralThank you! Pin
hepan
22:11 19 Jan '06  
GeneralHow to avoid memory read error exceptions? Pin
Carlos Eugênio X. Torres
0:37 23 Jun '05  
GeneralRe: How to avoid memory read error exceptions? Pin
Alexander Shilonosov
2:32 23 Jun '05  
GeneralRe: How to avoid memory read error exceptions? Pin
Carlos Eugênio X. Torres
5:24 23 Jun '05  
GeneralRe: How to avoid memory read error exceptions? Pin
Alexander Shilonosov
6:06 23 Jun '05  
Generalcreating directory Pin
hadaf9
0:42 18 Apr '05  
GeneralRe: creating directory Pin
Alexander Shilonosov
21:17 18 Apr '05  
GeneralRe: creating directory Pin
quentinsiraut
6:17 19 Apr '05  
GeneralTelnet and RCMD Pin
quentinsiraut
9:12 15 Apr '05  
GeneralRe: Telnet and RCMD Pin
Alexander Shilonosov
21:33 15 Apr '05  
GeneralRe: Telnet and RCMD Pin
quentinsiraut
6:20 19 Apr '05  


Last Updated 26 Jan 2004 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009