I want to copy c:\Windows\regedit.exe
to same directory with regedit2.exe
name But when I try to copy it,I take an error which say regedit.exe
file not found" or sometimes copy it to under windows\SysWOW64
directory. And actually I knıow win64
is redirecting it But how can I disable redirecting and copy windows/regedit.exe to windows/regedit2.exe. My sample code is
if(File.Exists(@"c:\Windows\regedit.exe"))
try
{
File.Copy(@"c:\Windows\regedit.exe", @"c:\Windows\regedit2.exe", true);
}
catch (Exception ex){}
İs there any one who can help me