Move files from Device to PC

G

Guest

Just wondering if I can get some ideas of how I can transfer data from my
scanner to the PC.
Currently I scan barcodes, once the user is done the will push a button and
will transfer all the data from a ListView onto a text file. After this I
need the data put on a PC in order to do further processing.
Questions: Can I do this with ActiveSync? I see how I can sync from PC to
Device...but not the other way around. I know I could get the user to copy
the file using Explore in Active sync...but I am trying to eliminate as many
steps for the user as possible.
If activesync is not the approach, is there a way that I can move the
file(s) programmatically from the device to a directory on the PC.

Just looking for ideas or best practices.

CE.Net 4.2
Symbol 9060 G scanner
vb.net
Activesync 3.8/usb

Thanks
 
G

Guest

If you need to have the files in one central location, and if you have a
network connection you can use web services of HTTP to sumbit files to the
server.
 
G

Guest

Thanks..but unfortuneatly we are unable to network it so web services/thin
client apps, etc are out of the question. Because of location we are pretty
much limited to batch
 
J

Juan Pedro Gonzalez

Hi Quixote,

You can get the PocketPC Developer Power Toys, it includes an application
called CECOPY. With this application you can copy files from (and to) the
pocket PC when the PC is cradled. On the Desktop you can use the
FileSystemWatcher class to process the files copied from the Pocket PC.

Hope you find it usefull,

Juan Pedro González
 
C

Chris Tacke, eMVP

If ActiveSync is acceptable you can use a PC-side application that auto-runs
when the device is connected that uses RAPI to retrieve the files from the
device.

We've got a set of managed classes to greatly simplify this process at
OpenNETCF, but unfortunately our IIS server is currently down. I hope to
have it back up today. When it is, the download is here:

www.opennetcf.org/communication

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
G

Guest

Juan,
Thank you for your response. Could you give an example of the proper syntax
to use? I have tried but am getting an error for Too Many Parameters.
For an example purpose...let's say I have a file called scanData.txt on the
device and I want to move it to the folder C:\Test o the PC

Thanks
 
G

Guest

The server is back up.

-Chris


Chris Tacke said:
If ActiveSync is acceptable you can use a PC-side application that
auto-runs when the device is connected that uses RAPI to retrieve the
files from the device.

We've got a set of managed classes to greatly simplify this process at
OpenNETCF, but unfortunately our IIS server is currently down. I hope to
have it back up today. When it is, the download is here:

www.opennetcf.org/communication

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
G

Guest

Wow,
If I can get these to work it will be a godsend. These would help me
automate the process so much.
I am having problems using a few of the methods. I have been able to delete
a file from the device but I cannot move or copy a file from the device to
the PC. I assume I am probably making syntax errors. Below is what I am
trying to tell it to do along with the error I get. Could you help me out?

m_rapi.Connect()
m_rapi.CopyFileFromDevice("\My Documents\Scan_Unit_Data.txt", "C:\Test\")

An unhandled exception of type
'OpenNETCF.Desktop.Communication.RAPIException' occurred in
opennetcf.desktop.communication.dll

Additional information: Could not open remote file

Thanks
 
C

Chris Tacke, eMVP

Looking at the documentation for CopyFileFromDevice
(http://tinyurl.com/duahe) I see this:

LocalFileName
Name of destination file on PC
RemoteFileName
Name of source file on device
So your call should look more like this:

m_rapi.CopyFileFromDevice("C:\Test\Scan_Unit_Data.txt", "\My
Documents\Scan_Unit_Data.txt")

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top