Hello, I' m writing for the first time a little Compact framework
application.
I need to write some code that copies selected files from the desktop PC to
the storage card inserted in the pocket Pc.
I don't understand how to reach the right path of the storage card. Also if
i find the path, is it possible to copy the file with a command line like
this?
file.copy(path1,path2)
Is this the right way to solve the problem or there is another method to
reach my purpose?

I'm sorry for my english.

My best regards, Maurizio Di Marco.

Re: Copy files to the storage card by Peter

Peter
Wed Sep 12 10:01:45 PDT 2007

No you need to use RAPI from the desktop to copy files to the device. Take a
look at the Desktop Communications wrapper here:-
http://www.opennetcf.com/FreeSoftware/DesktopCommunication/tabid/90/Default.aspx

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Wild Bill" <maurizio@cedisoft.it> wrote in message
news:%23lLz$2V9HHA.5948@TK2MSFTNGP04.phx.gbl...
> Hello, I' m writing for the first time a little Compact framework
> application.
> I need to write some code that copies selected files from the desktop PC
> to
> the storage card inserted in the pocket Pc.
> I don't understand how to reach the right path of the storage card. Also
> if
> i find the path, is it possible to copy the file with a command line like
> this?
> file.copy(path1,path2)
> Is this the right way to solve the problem or there is another method to
> reach my purpose?
>
> I'm sorry for my english.
>
> My best regards, Maurizio Di Marco.
>
>


Re: Copy files to the storage card by Jerod

Jerod
Wed Sep 12 11:14:57 PDT 2007

On Sep 12, 10:54 am, "Wild Bill" <mauri...@cedisoft.it> wrote:
> Hello, I' m writing for the first time a little Compact framework
> application.
> I need to write some code that copies selected files from the desktop PC to
> the storage card inserted in the pocket Pc.
> I don't understand how to reach the right path of the storage card. Also if
> i find the path, is it possible to copy the file with a command line like
> this?
> file.copy(path1,path2)
> Is this the right way to solve the problem or there is another method to
> reach my purpose?
>
> I'm sorry for my english.
>
> My best regards, Maurizio Di Marco.

>From the desktop you could also use CeCopy.exe which can be located at
http://www.microsoft.com/downloads/details.aspx?FamilyID=74473FD6-1DCC-47AA-AB28-6A2B006EDFE9&displaylang=en

I wouldn't recommend this message but I'm posting this in case people
don't know about it. I would recommend using the opennetcf desktop
communications wrapper if you have the development capability.

Example Desktop Code: (no error checking)

string path1 = "MyFile.txt";
string path2 = @"\Program Files\MyApp\MyFile.txt";

string filename = @"\"C:\Program Files\Windows Mobile Developer Power
Toys\CECopy\cecopy.exe\"";
string arguments = string.Format("\"{0}\" dev:\"{1}\"", path1, path2);

Process.Start(filename, arguments).WaitForExit();


Re: Copy files to the storage card by Wild

Wild
Thu Sep 13 01:36:46 PDT 2007

Thank you, I t will be very helpful.

My best regards, Maurizio Di Marco.


"Jerod Houghtelling" <houghtelling@gmail.com> ha scritto nel messaggio
news:1189620897.347858.310740@50g2000hsm.googlegroups.com...
> On Sep 12, 10:54 am, "Wild Bill" <mauri...@cedisoft.it> wrote:
> > Hello, I' m writing for the first time a little Compact framework
> > application.
> > I need to write some code that copies selected files from the desktop PC
to
> > the storage card inserted in the pocket Pc.
> > I don't understand how to reach the right path of the storage card. Also
if
> > i find the path, is it possible to copy the file with a command line
like
> > this?
> > file.copy(path1,path2)
> > Is this the right way to solve the problem or there is another method to
> > reach my purpose?
> >
> > I'm sorry for my english.
> >
> > My best regards, Maurizio Di Marco.
>
> >From the desktop you could also use CeCopy.exe which can be located at
>
http://www.microsoft.com/downloads/details.aspx?FamilyID=74473FD6-1DCC-47AA-AB28-6A2B006EDFE9&displaylang=en
>
> I wouldn't recommend this message but I'm posting this in case people
> don't know about it. I would recommend using the opennetcf desktop
> communications wrapper if you have the development capability.
>
> Example Desktop Code: (no error checking)
>
> string path1 = "MyFile.txt";
> string path2 = @"\Program Files\MyApp\MyFile.txt";
>
> string filename = @"\"C:\Program Files\Windows Mobile Developer Power
> Toys\CECopy\cecopy.exe\"";
> string arguments = string.Format("\"{0}\" dev:\"{1}\"", path1, path2);
>
> Process.Start(filename, arguments).WaitForExit();
>