### By MXB Informatica 2026 - www.mxbinformatica.it ###

   ------------------------------ ENGLISH ------------------------------
   this batch will try to analyze all files copied into "files" subfolder
   to split it into smaller files by the text set into "search" variable
   
   NOTE: the process is slow but very usefull. Please be patient while it works,
   you will tanks it in the end :-)

   It is more usefull when you got a very large SQL export file with many rows,
   and you have to import it without get a timeout or a refuse due to the file
   dimension. Split it in many files you wish and import it sequentially.

 Output:
   results.txt: list of all found blocks
   results folder: all files splitted into smaller files

 Customize:
   edit the batch and set your "search" string to know when a new block starts
   set also "max_blocks" to write into splitted files a defined number of blocks

 Usage:
   - opy the exported sql file into subfolder "files"
   - customize the "search" and "max_blocks" variables
   - run the batch and wait 'till the end:
     it is slow because it uses "FINDSTR" many and many times
   - enter the "results" folder and get the splitted files


   ------------------------------ ITALIANO ------------------------------
   Questo batch tenter di analizzare tutti i file copiati nella sottocartella "files"
   per suddividerli in file pi piccoli in base al testo specificato nella variabile "search".

   NOTA: il processo  lento ma molto utile. Abbiate pazienza durante l'esecuzione,
   ne sarete grati alla fine :-)

    particolarmente utile quando si ha un file di esportazione SQL molto grande con molte righe,
   e si deve importarlo senza incorrere in un timeout o in un errore dovuto alle dimensioni del file.
   Suddividetelo in pi file a piacere e importateli in sequenza.

 Output:
   results.txt: elenco di tutti i blocchi trovati
   Cartella results: tutti i file suddivisi in file pi piccoli

 Personalizzazione:
   Modifica il file batch e imposta la stringa "search" per sapere quando inizia un nuovo blocco
   Imposta anche "max_blocks" per scrivere nei file suddivisi un numero definito di blocchi

 Utilizzo:
 - Copia il file SQL esportato nella sottocartella "files"
 - Personalizza le variabili "search" e "max_blocks"
 - Esegui il file batch e attendi il completamento:
    lento perch utilizza "FINDSTR" molte volte
 - Accedi alla cartella "results" e recupera i file suddivisi


