Title: [VB.NET] 'If the file already exists in the Startup Folder, then this will prevent any er Author: gando Pastebin link: http://pastebin.com/x0v8Yvid First Edit: Monday 5th of September 2011 10:48:55 PM CDT Last Edit: Monday 5th of September 2011 10:48:55 PM CDT 'If the file already exists in the Startup Folder, then this will prevent any errors.         If IO.File.Exists(StartupFolder & "\SimpleShot.exe") Then             'wtf can i do to prevent an error here? the file is already there, so the error is 'file already exists'.             'the following method just deletes it, then rewrites it, but it's unneceessary disk activity and redundant. -,-             IO.File.Delete(StartupFolder & "\SimpleShot.exe")             IO.File.Copy(Application.ExecutablePath, StartupFolder & "\SimpleShot.exe")         End If