Hi Dw
I'm creating an application that will copy a file from one directory file to System32 file but I get an access denial error and I've decided to use vb.net to call cmd.exe and send keys to it that will instruct it to copy the file but the same error occurs but if I put or copy the file let say to 'C:\test\' it will copy it but it produce error if I try to copy it to System32 so I don't know if there is anyone know how I can grant this program a permission to access this file because I'm also an administrator on this computer, here is the code I've used below:
Dim Process As New Process
Process.StartInfor.FileName = "cmd.exe"
Dim SourceFile As String = "C:\Users\MyAccount\Desktop\Test\1254.txt"
SendKeys.Send("xcopy " + SourceFile + " " + "C:\Windows\System32\" & "{enter}")
Anyone who can help please
Thank you