Transactionscope rollback / .bat file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Transactionscope rollback / .bat file

  1. #1
    Join Date
    Mar 2010
    Posts
    2

    Transactionscope rollback / .bat file

    Hey,

    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?

    Any input would be appretiated.

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,201

    Re: Transactionscope rollback / .bat file

    bat file operations cannot be part of a transaction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center