Reputation: 35724
Does anyone know how I can add a context menu item that would compress a folder and add a timestamp? So that I can right-click a folder and it would give me the option to create something like this: folder_20100528.zip
(I'm posting it here because I figure it's something that's done through a batch file/code)
Upvotes: 1
Views: 2062
Reputation: 35724
the batch script is what I was trying to figure out ; )
SET ZIPPATH="C:\Program Files\7-Zip\7z.exe"
SET TIMESTAMP=%date:~6,4%%date:~3,2%%date:~0,2%-%Time:~0,2%%Time:~3,2%
%ZIPPATH% a -tzip "YRH_%TIMESTAMP%" "YRH\*"
for now I'm just using a .bat file that I dropped in the directory, I'll try to implement the rest later
thanks
Upvotes: 1
Reputation: 2769
The batch script should be reasonably simple, so create it and throw it in C:\
On XP:
Upvotes: 2