2008-12-18

Backup/BackupEncrypt using AutoIt & 7Zip

Sometimes, there are 'miscellaneous' files I'd like backed up that normally don't go into source control. To do that I drag/drop files on the Backup.exe/BackupEncrypt.exe (compiled AutoIt scripts) -- they use & 7Zip to create .zip files in a '_zArchive' folder where those files are found.
There is a 'one-for-one' relationship of drag-dropped files and resultant '.zips'.

Scripts are dependent on this script(place at C:\!WF\_INC\filename.au3):
UtilityFunc.au3.exe
Place in a folder above the one used as target for other scripts("..\inc\UtilityFunc.au3")

If you'd like to see the .au3 files(place at C:\!WF\myWidgets\filename.au3):
Backup.au3.exe
BackupEncrypt.au3.exe

Note:  All link~downloads are self-extracting files.  I've tested with WinZip 12.1 and 7Zip 4.65

EXAMPLE USE


Drop Scripts...

I use Crystal Reports, EditPlus, SciTE, and WinSQL ... a lot. I've created AutoIt drop scripts that facilitate a sorted, drag-drop from Windows Explorer. To use these executables just right-click/save as/extract - to recompile/edit for your purposes - you'll need AutoIt.

ZIPS:

[Crystal Reports XI].au3/exe
[EditPlus].au3/exe
[SciTE].au3/exe
[WinSQL].au3/exe

FB.exe 'generic' toolbar

I've created a 'generic' toolbar that works with many applications I use. Your welcome to try it. You'd want to right-click/save AU3 & EXE zips to a "ToolBox" folder and and 16x16 zip to an "_ICO" folder placed on same level as "ToolBox" folder. Extract all files & 'ToolBox\fb.exe' should be runnable. If you need to modify - you'll have to install AutoIt.

ZIPS:

16x16
FB.au3
FB.exe

EXAMPLE (see icons on titlebar of WinSQL Trial application):

myShowDeskTop (AutoIt script)

For this you'll need AutoIt

...
;- ; myShowDeskTop - minimize non-toolwindows ;- ; Description ;- ; 'Show Desktop' & MinimizeAll ; minimize EVERYTHING including ; Google Desktop and floating ; toolbars...this excludes ; those not in 'my' list ;- $var = WinList() For $i = 1 to $var[0][0] If $var[$i][0] <> "" _ And IsVisible($var[$i][1]) _ And NOT IsMinimized($var[$i][1]) _ And $var[$i][0]<>'EnvSW' _ And $var[$i][0]<>'FB © 2008' _ And $var[$i][0]<>'Program Manager' _ Then WinSetState($var[$i][0],"",@SW_MINIMIZE ) EndIf Next Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc Func IsMinimized($handle) If BitAnd( WinGetState($handle), 16 ) Then Return 1 Else Return 0 EndIf EndFunc

LibriVox's New Releases

Blog Archive

Powered By Blogger