@rem lpad10.bat
@rem RJM Programming - January, 2015
@rem Supervised by csvsort.bat ... blurb for that supervisor is ...
@rem Defaults to three comma separated fields to sort and default csv3.bat and vsc3.bat as written
@rem Usage: csvsort[.bat] [[numFields] [rowsToSkip]] [inputCSVFilename] [fieldNumberOfSort] [/n] [/r]
@rem Note: If no inputSVFilename existing it will ask for interactive input
@rem Defaults: /n does numerical sort and /r reverses the sort
@rem Defaults: rowsToSkip=0 fieldNumberOfSort=1 (starting at 1) numFields=3 (if specified please also specify a rowsToSkip value)
@echo off
@set x=%1
@if 0%1 lss 0 goto getmore 
@set prex=%1
@set xx=%x:~-1%
@set q="
@set x=00000000000000000000000%1
@set x=%x:~-20%
:getmore
@shift
@if trick%1==trick goto nomore
@set x=%x%,%1
@goto getmore
:nomore
@echo %x%,%prex%

