Comments

jetdv wrote on 9/11/2008, 6:46 AM
You can create a batch file that will start Vegas and autostart a script like this:

"c:\Program Files\Sony\Vegas Pro 8.0\vegas80.exe" -SCRIPT:"path to script/script.cs"


At the end of the script, you can tell Vegas to exit:

Vegas.Exit();

However, you'll need to make sure it is "safe" to exit or a dialog will pop up asking you to save the project so you don't lose info. Here's how I've done it in the past:



// Temporarily save the current project and then start a new project.
Vegas.SaveProject(TempSave);
Vegas.NewProject(false, false);
Vegas.UpdateUI();

// Delete the temporary save file
File.Delete(TempSave);

// Exit Vegas
Vegas.Exit();