*****************************************************************
***                GetSize NSIS plugin v1.0                  ***
*****************************************************************

2005 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)


Features:
1. Find the size of a file, files wildcard or directory.
2. Find the sum of the files, directories and subdirectories.


**** Output variables ****
.r0-.r9 == $0-$9
.R0-.R9 == $R0-$R9


**** Syntax ****
getsize::GetSize "[Path]" "[Options]" .r0 .r1 .r2

"[Path]"      - Disk or Directory

"[Options]"   - "/M=[mask] /S=[Bytes|Kb|Mb|Gb] /G=[1|0]"

	/M=[mask]
		/M=*.*         - Find all (default)
		/M=*.doc       - Find Work.doc, 1.doc ...
		/M=Pho*        - Find PHOTOS, phone.txt ...
		/M=win???.exe  - Find winamp.exe, winver.exe ...
		/M=winamp.exe  - Find winamp.exe only
	/S=[Bytes|Kb|Mb|Gb]
		/S=Bytes       - Return size in bytes (default)
		/S=Kb          - Return size in kilobytes
		/S=Mb          - Return size in megabytes
		/S=Gb          - Return size in gigabytes
	/G=[1|0]
		/G=1           - Find with subdirectories (default)
		/G=0           - Find without subdirectories

.r0  - $0=Size
.r1  - $1=Sum of files
.r2  - $2=Sum of directories
