I’m currently using the OpenNETCF.Desktop.Communication.dll to copy files from my desktop to a CE device, but I keep getting an error:
‘Could not create remote file’
My development environment is VS2005 (VB.NET)
My code:
ObjRapi.Connect()
ObjRapi.CopyFileToDevice("C:\results.txt", "\results.txt")
ObjRapi.Dispose()
ObjRapi.Disconnect()
Has anyone run into this and did you manage to get around it.
Thanks
I have run into this once before but I can't really remember what was causing it.
The only thing I can think of from looking at your code is this line:
ObjRapi.CopyFileToDevice("C:\results.txt", "\ \results.txt")
I'm not sure but you could try and change the destination path to something different. Something like this:
ObjRapi.CopyFileToDevice("C:\results.txt", "\My Documents\results.txt")
I can't really test this at the moment but I really don't see why it wouldn't work.
EDIT: I just had a look at some code that I have writen using the RAPI,when I do any copying my line looks like this:
ObjRapi.CopyFileToDevice("C:\results.txt", "\My Documents\results.txt",True)
The boolean on the end is an overwrite switch, setting that to true may work.