I am wondering if it is possible to use transactionscope in C# to roll back a batch file if it fails along the way.
Basically I have a .bat file that creates a database, etc, if it fails along the way I want to roll back to the original state. But, as I understand it .bat files are basially "fire and forget", so I may not be able to roll back using transactionscope?
Bookmarks