I written a program to create site definition in visual studio. I am running below stsadm commandlines in post deployment process. I added below code in the "Post-Deployment command line" window.
stsadm.exe -o deletesite -url http://sp2010 stsadm.exe -o createsite -owneremail firstname.lastname@example.org -url http://sp2010 -sitetemplate "STS#0" -title "My Site"
These lines are not executing. It is giving error with code 4294967294
But if i run these lines in command prompt these are executing successfully. What mistake I done here.