Find/Copy All Files in a directory via RAPI on WinCE

4.1k views Asked by At

I'd like to copy all files in a directory from my windows mobile device to PC. There's no API for that. Also there is no API to list all files in a directory of embedded device.

I think I can list all files in a directory via (RAPI) CeFindFirstFile and CeFindNextFile functions.

Could you help me how I can? By the way I should do it in C#

1

There are 1 answers

1
ctacke On

You are correct that it's a call to CeFindFirstFile followed by CeFindNextFile until it returns nothing. For a working C# example, this Codeplex project wraps those calls in the RAPI.EnumFiles() method.