Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\Directory\shell\TimestampArchive7z]
  4.  
  5. [HKEY_CLASSES_ROOT\Directory\shell\TimestampArchive7z\command]
  6. @="powershell.exe -NonInteractive -command \"$v = '%v';$a = $v.split('\\');$l = $a.length-1;$na = $a[0..($l-1)];$od = $na -join '\\';$dn =$a[$l];$ts = $(get-date -f yyyy-MM-dd_hhmmss);$fn = -join('archive_', $dn , '_', $ts, '.zip');;set-alias sz \"$env:ProgramFiles\\7-Zip\\7z.exe\";sz a \"${od}\\${fn}\" $v\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement