When you copy a file into another directory, you also have to specify a file name; right now you are copying to
%AppData%\Master
, but you have to copy to
%AppData%\Master\FileNameHere.exe
. Use this
File.Copy
call to copy the executable correctly:
File.Copy(src, Path.Combine(dest, Path.GetFileName(src)));