[2005] Need Advice on direction
My goal is to create an app that will not only detect when a PnPDevice connects (done using WMI btw) but also allow the transfer of files from the desktop/network to the device.
Where I am running into problems is how to actually transfer the file / get to the files stored locally. Do I use TCP, sockets, UDP? The device in question is using Windows Mobile 5. I know that I cannot and do not want to modify the system files as they are part of the actual build of the unit. The file(s) I am looking to send are from a program that I have created.
I know Windows Explorer can get to the device so I should be able to as well. The device can also get to the network drives so it should be possible from there as well. Any and all input would be a great help!!
D
Re: [2005] Need Advice on direction
A little clarification, first: I read your opening statement to suggest that you are writing a program that will be running on the desktop and watching for the mobile to be connected. The rest of what you talk about suggested that the program will be for the mobile.
If you have a program on each end, then I would go with TCP, of those three options (and have done so, but it was years ago in .NET2003). UDP will be a pain in the ass for anything other than very small files, because of the unreliable nature. If the size of the file exceeded the size of the UDP packet, it would get chunked, and would be up to you to stitch it back together, which is unwarranted in this case.
Re: [2005] Need Advice on direction
The program that detects the handheld and that I would like to do the transfer is on a desktop. The handheld runs the application that would be updated. I mapping this process out, it also came to my attention that I would need to be able to kill the process (program) that runs on the handheld as well as reboot the device when the update is complete. I am researching now to see how the security with/between Mobile 2005, etc and XP handles all that - kind of coming up empty handed though.
Thanks for the insight shaggy, I am open to any and all suggestions, directions, advice, etc!!
D