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();
>