Greetings fellow citizens of Powershellia
Just been looking at the new 'transaction' cmdlets in Powershell, courtesy
of the recent Powershell blog entry on subject.
PowerShell Transactions QuickStart
http://blogs.msdn.com/powershell/arc...uickstart.aspx
I don't know how difficult it would be to implement this also for the file
system provider (to complement the registry provider) but it strikes me
(probably in my misguided ignorance) that that would be quite a cool feature
if it were.
eg such that you could also run commands like
Start-PSTransaction
New-Item $env:userprofile\Desktop\test.txt -ItemType file `
-Value "Some contents" -UseTransaction
#Get-Content -UseTransaction $env:userprofile\Desktop\test.txt
Undo-PSTransaction
to work alongside what you can do with the registry provider.
When combined with registry transactions, it would seem that might then be
the basis for a full-blown Powershell-based application virtualization,
which sounds like it could be useful.
Thoughts, insights, corrections ....?
--
Jon


