Back to main

Windows Command For Undo | COMPLETE |

Undo-LastDelete # Restore last deleted file Undo-LastDelete -Last 10 # Restore last 10 deletions

However, here's a using PowerShell's -WhatIf and reusable functions: windows command for undo

function Safe-Move param($Source, $Dest) $undoLog += [PSCustomObject]@Original = $Source; New = $Dest Move-Item $Source $Dest $Dest) $undoLog += [PSCustomObject]@Original = $Source

2 Answers. Sorted by: 3. there is such thing as "shadow copy" available in some versions of windows: http://en.wikipedia.org/wiki/ Super User Is it possible to undo a paste on the Windows comandline? windows command for undo