This is the part that crashes and gives me this error is when I try to copy a file to a certain location.
string startupDirectory = \"C:\\\\Users\\\\Tyler\\\
Try this:
File.Copy(startupDirectory, "Startup.exe", true); File.SetAttributes("Startup.exe", FileAttributes.Normal);