CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  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 offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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
  •  





Click Here to Expand Forum to Full Width

Featured