LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Access denied using CVI CopyFile function

Solved!
Go to solution

I want my CVI program to overwrite a dll with a new one in c:\windows\system32. When I call the CopyFile function in my program, the error code 6 is returned which means "Access denied".

Do you know how I could programatically give my program the right to overwrite this dll?

 

Thanks for your help!

0 Kudos
Message 1 of 4
(3,713 Views)

Most likley you might have got just a read permission to the dll only.

0 Kudos
Message 2 of 4
(3,674 Views)
Solution
Accepted by topic author jbaptistemarie

I am sorry but this issue was my mistake...

The DLL was simply loaded in memory when my program was trying to overwrite it.

0 Kudos
Message 3 of 4
(3,672 Views)

oh!!!thanks for updating

0 Kudos
Message 4 of 4
(3,668 Views)