Copy files to the storage card

W

Wild Bill

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.
 
J

Jerod Houghtelling

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/...D6-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();
 

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