Re: How to copy Dll/Exe in \Windows

Tech-Archive recommends: Speed Up your PC by fixing your registry



The docs areprettylea tha parameter 2is the etination file name, not just
the folder.

http://msdn2.microsoft.com/en-us/library/ms923947.aspx


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:360672EC-311F-439A-B0F0-3E45CE6BC790@xxxxxxxxxxxxxxxx
Hi,
My simple code is as :
CopyFile(_T("\\MyFolder\\temp.txt"),_T("\\Windows"), FALSE));
CopyFile(_T("\\MyFolder\\ceramdrv.exe"),_T("\\Windows"));
and DLL also...
All 3 are throwing a GetLastError() of "ERROR_ACCESS_DENIED" and when use
MoveFile(), throwing "ERROR_ALREADY_EXISTS" though the files are not in
windows.
If OS is protecting direct acceesing of windows files (according to some
blogs its ROM), If these 2 API are not able to copy then:

1. How I am able to copy manually?
2. How my cab file is installing files in windows

any help plz .????

- Rahul

"<ctacke/>" wrote:

Many of the files in the \Windows folder are in ROM and aren't actually
"files" per se. Those files cannot be copied. It's likely that whatever
you're trying to do by copying them probably won't work either - for
example
you can't copy something like cellcore.dll to another device and have it
magically become a phone device.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:44BEAC4B-0A86-4DCC-B779-DE9229E9C90C@xxxxxxxxxxxxxxxx
Hi,
In my WM5/WinCE5 devices, I am not able to copy any DLL/EXE file. I am
using
copyfile(), but its giving "Access Denied" error. I used MoveFile()
also,
but
gone in vain. But manually we can copy those files. What is reason I am
not
able to do this? Also How can I do this? Dons OS restricting me to do
this?
But when we create any installer file (.cab file) that can copy the
files
in
\Windows ??
Any help plz ???

Thanks .






.



Relevant Pages

  • Re: CEplayer sample and Windows MObile 5 problem.
    ... Chris Tacke, eMVP ... Join the Embedded Developer Community ... I downloaded the OPENNETCF control demo app, but the CE one is built ...
    (microsoft.public.windowsce.app.development)
  • Re: How to copy Dll/Exe in Windows
    ... Chris Tacke, eMVP ... Join the Embedded Developer Community ... If OS is protecting direct acceesing of windows files (according to some ...
    (microsoft.public.windowsce.embedded)
  • Re: Delete from file
    ... Chris Tacke, eMVP ... Join the Embedded Developer Community ... should "shift" the upper part of the file downwards until the the last byte ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Development environments
    ... Chris Tacke, eMVP ... Join the Embedded Developer Community ... understand that unless there is a managed wrapper somewhere for the RIL ...
    (microsoft.public.pocketpc.developer)
  • Re: Development environments
    ... Chris Tacke, eMVP ... Join the Embedded Developer Community ... understand that unless there is a managed wrapper somewhere for the RIL ...
    (microsoft.public.pocketpc.developer)