If you want to run a script, copy files, or execute a command automatically after every successful build, use a Post-Build Event Right-click your project in the Solution Explorer Properties Navigate to the Build Events Type your commands into the Post-build event command line copy "$(TargetPath)" "C:\MyBackups\" 2. "Posting" (Publishing) Your Project