Copy a file from PDA to PC via USB in java
In my application I开发者_运维百科 want to copy a file from PDA to PC via USB, using Java.
But I don't have any idea about how to do this and what API to use for that?
You need to use RAPI in order to do this. In order to access the RAPI dll from Java you can either use JNI or a library like this NativeCall.
I have post describing how to do this in .NET, although it doesn't directly solve your problem it does demonstrate which methods to use in RAPI and how to use them.
http://christian-helle.blogspot.com/2007/06/copying-files-from-device-to-desktop.html
精彩评论