I have a daily / monthly process where, I have a .txt that has a list of about 10,000 file IDs (one ID per line)
(example_contact_file.txt)
{ 12345
23456
34567
45678
56789
}
Each (eg 12345) file ID of the .txt corresponds to an .xml file ( 12345 _0.xml) that is in a server folder < b> (server02) together with another 200,000 .xml files that do not interest me.
I want to create a .bat that by the IDs I have in .txt, find and play only the .xml files with .txt IDs.
Roughly speaking, I think logic would look like this.
for (1 = 0; 1> Quantity_ids_Txt; i ++)
{
Variable XXX = GET FIRST ID (THAT CORRESPONDS TO i LINE);
Se (PROCURAR .XML QUE O NOME POSSUA *XXX*.xml e encontrar){
Mover Arquivo_<b>X</b> para C:\USER\PASTA_ARQUIVOS_DESEJADOS
}
Se não{
registrar no arquivo LOG.txt a string "ARQUIVO XXX não encontrado"
}
About us
Could someone please help me? I need to pass this logic on to a .bat log. I would handle doing this in a C #, but in .bat I do not give up. Thank you in advance!