"Untitled" By gando (https://pastebin.com/u/gando) URL: https://pastebin.com/x0v8Yvid Created on: Monday 5th of September 2011 10:48:55 PM CDT Retrieved on: Saturday 31 of October 2020 07:58:09 AM UTC '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