require a little bat file (we can check if a program is suggested), that search xml and pdf files inside a given folder and copy it in to another, the bat must find inside the sub folders of given folder for xml files, when xml founded, must read inside the xml file for a variable called, "FechaTimbrado" that has a date value, this variable and date always comes this format: FechaTimbrado="2016-04-06T13:01:05", in the xml file, FechaTimbrado=is a variable in the XML file and 2016-04-06T13:01:05 has the format YYYY-MM-DDTHH:MM:SS, so knowing this, need to organize the readed xml file and a pdf file with the same name that is in the same folder (of the xml file found), and copy it, in a backup folder, the bat must have the option to specify the route for the backup where the xml files will be copied and organized. from that given backup folder, the format for organize the subfolders is based on the date of xml file found, backup must be YYYY\MM\DD, yes! 3 folders, one inside the other for organize, finally, the bat must generate and fill a csv log file when the bat will log all the proccesed files with the name of file, the date, a value of variables RFC and nombre" inside "CFDIEmisor" Container located in the XML files too,, the log will be stored in the MM folder of backuped files, and must read a file where the bat will read the last procesed folder to start from there next time and the bat can read also the dates from a file too to specify a range.
****hints,****
1. All the subfolders of given folder to read from, has the format "XML MM-DD",, (XML Month Day), the given folder to read and to backup from, always has the year format "YYYY" as name.
2. Inside a subfolder there are another folder that contains the xml, so needs to find if the subfolders has xml files on it. sometimes YYYY/XML MM-DD/XXXXX/[login to view URL] but must be adaptative, if there are another sub folders inside.
3. If duplicated files found, must put a -X at the final of the name where x is the repeated number, this operation must be logged too in to csv file specifiing the file is duplicated. require a little bat file that search xml and pdf files inside a given folder and copy it in to another, the bat must find inside the sub folders of given folder for xml files, when xml founded, must read inside the xml file for a variable called, "FechaTimbrado" that has a date value, this variable and date always comes this format: FechaTimbrado="2016-04-06T13:01:05", in the xml file, FechaTimbrado=is a variable in the XML file and 2016-04-06T13:01:05 has the format YYYY-MM-DDTHH:MM:SS, so knowing this, need to organize the readed xml file and a pdf file with the same name that is in the same folder (of the xml file found), and copy it, in a backup folder, the bat must have the option to specify the route for the backup where the xml files will be copied and organized. from that given backup folder, the format for organize the subfolders is based on the date of xml file found, backup must be YYYY\MM\DD, yes! 3 folders, one inside the other for organize, finally, the bat must generate and fill a csv log file when the bat will log all the proccesed files with the name of file, the date, a value of variables RFC and nombre" inside "CFDIEmisor" Container located in the XML files too,, the log will be stored in the MM folder of backuped files, and must read a file where the bat will read the last procesed folder to start from there next time.,
****hints,****
All the subfolders of given folder to read from has the format "XML MM-DD",, (XML Month Day), the given folder to read and to backup from, always has the year format "YYYY" as name.
Inside a subfolder there are another folder that contains the xml, so needs to find if the subfolders has xml files on it. sometimes YYYY/XML MM-DD/XXXXX/[login to view URL] but must be adaptative, if there are another sub folders inside. any doubts please contact me.