Sign in to follow this  
Followers 0
Sokko

Transactional NTFS Functions for Vista

1 post in this topic

#1 ·  Posted (edited)

Windows Vista introduces a new way of handling file operations called Transactional NTFS, or TxF for short (MSDN link). Basically, you create what's called a transaction, and use it to tell Windows what you intend to do with some files. None of the changes are made until you commit the transaction, at which point everything you specified earlier happens in one big whack. Alternatively, if you find out in the middle of your file manipulation that you can't do something you wanted, you can roll back the transaction, and none of your changes actually happen.

Unfortunately, only Windows Vista is capable of using these functions, which means they're just a curiosity until Vista reaches critical mass (though they might be useful for administering a Vista-only corporate environment). Still, I was bored this afternoon, and the DLL calls are fairly straightforward, so I wrote some AutoIt functions to deal with transactions. With these you can create, commit, and roll back transactions, and within a transaction you can move/copy/delete files and move/create/delete directories (attempting to copy a whole directory doesn't work for some reason). No support for creating and writing to files yet, though it's technically possible.

Documentation is included in the AU3, along with some common error codes. If you have access to a Vista machine, go ahead and test out some transactions!

txf.au3

Edited by Sokko

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0