Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How did I transfer files between PDA in the cradle, and my PC

39 views
Skip to first unread message

Ibai Peña

unread,
Aug 13, 2003, 5:35:13 AM8/13/03
to
Hi,

How can I transfer files between a PDA that is in the cradle, and the PC?

Thanks,
--
Ibai Peña


Mihai Virtosu

unread,
Aug 13, 2003, 5:50:04 AM8/13/03
to
Ibai,

You can do this in two ways.

Programatically, you can use the File.Copy() method, provided that you know
the source and destination directories.

Another way is to simply use Windows Explorer (this is acomplished by the
ActiveSync software).

Mihai Virtosu

"Ibai Peña" <iga...@hotmail.com> wrote in message
news:#Nj4D5XY...@TK2MSFTNGP10.phx.gbl...

Peter Foot [MVP]

unread,
Aug 13, 2003, 8:11:12 AM8/13/03
to
Programmatically you can do this using RAPI (Remote API) on the desktop
machine to push and pull files to/from the device. You can use the
OpenNETCF.Communication library which is a .NET wrapper around this API
within a .NET Framework application on your desktop PC.
http://www.opennetcf.org/communication.asp
You will also find a sample of using the library linked on that page.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com

"Ibai Peña" <iga...@hotmail.com> wrote in message

news:%23Nj4D5X...@TK2MSFTNGP10.phx.gbl...

Ibai Peña

unread,
Aug 14, 2003, 2:54:24 AM8/14/03
to
Hi again,

How can I reference a PC directory from code?
How can I reference a PDA directory from code?

Thanks,
--
Ibai Peña

"Mihai Virtosu" <mvir...@hotmail.com> escribió en el mensaje
news:uZ1GkBY...@TK2MSFTNGP10.phx.gbl...

Mihai Virtosu

unread,
Aug 14, 2003, 3:03:19 AM8/14/03
to
Ibai,

A PDA directory can be referenced like this:

DirectoryInfo di = new DirectoryInfo(@"\DirName\");
FileInfo[] filelist = di.GetFiles("*.*");
foreach(FileInfo file in filelist)
{
\\ do some work with these files
}

supposing that DirName is the name of a directory in the root of your smart
device.

Desktop directories can be accessed in a similar manner.

Mihai Virtosu


"Ibai Peña" <iga...@hotmail.com> wrote in message

news:OEr07DjY...@TK2MSFTNGP12.phx.gbl...

Ibai Peña

unread,
Aug 14, 2003, 4:21:37 AM8/14/03
to
When I try to copy the files, gives me an error. Seems that PC directories cant be referenced from the code.
 
this is the code:

File.Copy(@"\Program Files\InventarioPDA\Inventario.xml",@"C:\");

And gives DirectoryNotFoundException .

What am I doing wrong? Isnt possible to acces the PC from the PDA code?

Thanks again,
--
Ibai Peña

"Mihai Virtosu" <mvir...@hotmail.com> escribió en el mensaje news:OYkfBJjY...@tk2msftngp13.phx.gbl...

Mihai Virtosu

unread,
Aug 14, 2003, 5:01:41 AM8/14/03
to
Ibai,

If used in a Pocket PC application, File.Copy() can be used only with
directories from the Pocket PC.

I am not sure, but I believe one cannot access desktop directories from the
smart device. Also, see this post:

You should have ftp or http server startted or network share on your
desktop and copy files through network. There is no something like RAPI
activated from Pocket PC side.

Andrey Yatsyk

"Scott Brogden" <sabr...@softhome.net> wrote in message
news:#WUr7efY...@TK2MSFTNGP12.phx.gbl...
> I've seen examples of copying files from the desktop to the pocket pc and
> from the pocket pc to the desktop with an app on the desktop controling
> everything.
>
> I want the app to be on the pocket pc that does the copying to and from.
>
> I haven't seen any examples of this. Any ideas.
>
> Scott

Hope this helps,

Mihai Virtosu

"Ibai Peña" <iga...@hotmail.com> wrote in message

news:utZ8r0j...@TK2MSFTNGP12.phx.gbl...

Peter Foot [MVP]

unread,
Aug 14, 2003, 5:04:21 AM8/14/03
to
You cannot access the Host PC file system from code on the PDA, neither can you access the PDA file system from the desktop using the standard System.IO namespace functions. However using RAPI (on the Desktop) you can copy files backwards and forwards. See OpenNETCF.Communication for a ready-made RAPI library for .NET
http://www.opennetcf.org/communication.asp
You will also find a sample of using the library linked on that page.
 
Peter

--
Peter Foot
Windows Embedded MVP
 
"Ibai Peña" <iga...@hotmail.com> wrote in message news:utZ8r0j...@TK2MSFTNGP12.phx.gbl...

Ibai Peña

unread,
Aug 14, 2003, 7:04:11 AM8/14/03
to
supossing I have network share, how can I transfer files?

thx,
--
Ibai Peña

"Mihai Virtosu" <mvir...@hotmail.com> escribió en el mensaje

news:OrsIKLkY...@tk2msftngp13.phx.gbl...

Ibai Peña

unread,
Aug 14, 2003, 7:11:14 AM8/14/03
to
Forget about it.

I´ll develep a desktop side library to transfer files throw the cradle using
RAPI.

Thanks very much anyway.

--
Ibai Peña

"Ibai Peña" <iga...@hotmail.com> escribió en el mensaje
news:#kyoiPlY...@TK2MSFTNGP09.phx.gbl...

0 new messages