if '%1' == '' goto usage
dir %1\*.txt/s/b>%1.lst
del "%1.??wrd"
del "%1.??wrd.SORTED"
Leprechaun_x-leton_32bit_singleton_1pass.exe %1.LST "%1.01wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.01wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.01wrd.SORTED"
Leprechaun_x-leton_32bit_doubleton_1pass.exe %1.LST "%1.02wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.02wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.02wrd.SORTED"
Leprechaun_x-leton_32bit_tripleton_1pass.exe %1.LST "%1.03wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.03wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.03wrd.SORTED"
Leprechaun_x-leton_32bit_quadrupleton_1pass.exe %1.LST "%1.04wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.04wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.04wrd.SORTED"
Leprechaun_x-leton_32bit_quintupleton_1pass.exe %1.LST "%1.05wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.05wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.05wrd.SORTED"
Leprechaun_x-leton_32bit_sextupleton_1pass.exe %1.LST "%1.06wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.06wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.06wrd.SORTED"
Leprechaun_x-leton_32bit_septupleton_1pass.exe %1.LST "%1.07wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.07wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.07wrd.SORTED"
Leprechaun_x-leton_32bit_octupleton_1pass.exe %1.LST "%1.08wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.08wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.08wrd.SORTED"
Leprechaun_x-leton_32bit_nonupleton_1pass.exe %1.LST "%1.09wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.09wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.09wrd.SORTED"
Leprechaun_x-leton_32bit_decupleton_1pass.exe %1.LST "%1.10wrd" 500000 Y
QuickSortExternal_4+GB.exe "%1.10wrd" /fast
ren QuickSortExternal_4+GB.txt "%1.10wrd.SORTED"
copy "%1.??wrd.SORTED" %1.x-leton /b
@del QuickSortExternal_4+GB.distinct.txt
REM exa-grain origin:
REM peta-
REM 10^15 = 1,000,000,000,000,000
REM exa- 
REM 10^18 = 1,000,000,000,000,000,000
REM 2^64 = 18,446,744,073,709,551,616
REM Apothecary Weights:
REM grain = 64.799 milligrams
REM dram = 60 grains
REM ounce = 8 drams
REM pound = 12 ounces or 96 drams
7za a -ttar %1.exa-grain.tar "%1.??wrd.SORTED" "%1.x-leton" %1\*.txt -r
GRAFFITH_r2++_Graphein.exe e %1.exa-grain.tar %1.exa-grain.tar.bsc -m3fb32
goto finish
:usage
echo Usage: XLETTING.BAT folder-name-in-current-directory
:finish