How can I transfer files between a PDA that is in the cradle, and the PC?
Thanks,
--
Ibai Peña
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
--
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...
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...
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...
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...
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...
"Ibai Peña" <iga...@hotmail.com> wrote in message news:utZ8r0j...@TK2MSFTNGP12.phx.gbl...
thx,
--
Ibai Peña
"Mihai Virtosu" <mvir...@hotmail.com> escribió en el mensaje
news:OrsIKLkY...@tk2msftngp13.phx.gbl...
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...