filecopy

  • Thread starter Thread starter Elmar Jacobs
  • Start date Start date
E

Elmar Jacobs

hi folk,

i try to copy files from a "\Flashdisk" directory to "\Program Files"
directory. the copy application runs in the flashdisk directory.both
directories are in the root space from a smart device. therefore i think a
"c:/" directory doesn't exist.
i try following code

System.IO.File.Copy("\Flashdisk\application.exe", "\Program
Files\application.exe");
but it make's only an "..performed an illegal operation and will shut
down..."

Can anybody explain me how the file.copy operation is working?

thanks a lot,

elmar
 
Since Windows CE doesn't use drive letters, the root of the system is "\"
not "C:\".

Is the application file used in the code snippet (either source or
destination) in use at the time?

Peter
 
no, it isn't.
the copy application is a bootloader application, that copy the real
application in ram and start the real application after copying. so the real
application has access to the "source" file for an update.

elmar
 
I know that symbol units look for .cpy files when they boot which are
just text files with a source and destination seperated by a >
eg. \Application\myApp.exe>\Windows\myApp.exe

Robert
 
Back
Top