Uploading with Atmel Studio 6

ok..I think to use bossac gui, you need to press the erase button before you choose to load your program but the batch file would be a better approach for loading from within atmel studio. I have no clue how to program the SAM3X8E in atmel studio otherwise i would try.. perhaps you can share a simple code..