
2
Артем
no recommendations
no complaints
Closed
Project title: Write a bat file
Type of cooperation: One-time project
Section: Software development
Prepayment: without prepayment
Payment methods: Bank transfer, Electronic money
Acceptance of requests: closed
Type of cooperation: One-time project
Section: Software development
Prepayment: without prepayment
Payment methods: Bank transfer, Electronic money
Acceptance of requests: closed
Project description:
Please write a bat file.
The folder has n-th number of archives (for work with archives installed 7-zip).
The archives are called Screen_pdf_GGGMMCHNo.zip
where GHGMMH is the date, for example 20140118
Number - can be a maximum of three digits, from 0 to 300. There is no zero before the number, so if number 3, then it is written 3, not 003, etc.
The PDF files are in the archive. File names in the archives are completely the same (Figure 1_Main_view.pdf, Figure 2_View_right.pdf, Figure 3_View_top.pdf, etc.), so it is important not to confuse them by date.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
A mission.
1. Unpack archives in the current directory into folders corresponding to the names of the archives.
2. Rename the folders by mask number bullet. - Three-sign (003) gap in brackets GHG-MM-PM-PM
That is, the folder Screen_pdf_GGGMMPPNo to be renamed "NoNoNo" (GYG-MM-PM-PM).
"Screen_pdf_201401187" will be "007 (2014-01-18)"
3. Assign the folder name to each file in the folders through the space:
Figure 1_Main_view 007 (2014-01-18).pdf,
Figure 2_View_right 007 (2014-01-18).pdf,
Figure 3_View_top 007 (2014-01-18).pdf
4. Copy from each folder files with the names "Figure5_slice B-B NoNoNo (GYG-MM-CH).pdf",
"Figure 8_Specification_B5372 NoNoNo (GYYYY-MM-CH).pdf", "Fig.21_Cost_processing NoNo(GYYYYY-MM-CH).pdf" in the same folder where the archives and newly created folders are located (all together, without subfolders).
5. Rename the copied files by deleting everything between the figure number and the folder number.
That is, leave "Figure5 NoNoNo (GYG-MM-ChCh).pdf", "Figure21 NoNoNo (GYG-MM-Ch).pdf";
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
As a supplement, and, accordingly, for the supplement. fee:
Open the pulled PDFs with FoxitReader 4.3, save them as text. Then open the resulting .txt files in EmEditor and execute the script (the script itself is written, you just need to run it automatically).
Please write a bat file.
The folder has n-th number of archives (for work with archives installed 7-zip).
The archives are called Screen_pdf_GGGMMCHNo.zip
where GHGMMH is the date, for example 20140118
Number - can be a maximum of three digits, from 0 to 300. There is no zero before the number, so if number 3, then it is written 3, not 003, etc.
The PDF files are in the archive. File names in the archives are completely the same (Figure 1_Main_view.pdf, Figure 2_View_right.pdf, Figure 3_View_top.pdf, etc.), so it is important not to confuse them by date.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
A mission.
1. Unpack archives in the current directory into folders corresponding to the names of the archives.
2. Rename the folders by mask number bullet. - Three-sign (003) gap in brackets GHG-MM-PM-PM
That is, the folder Screen_pdf_GGGMMPPNo to be renamed "NoNoNo" (GYG-MM-PM-PM).
"Screen_pdf_201401187" will be "007 (2014-01-18)"
3. Assign the folder name to each file in the folders through the space:
Figure 1_Main_view 007 (2014-01-18).pdf,
Figure 2_View_right 007 (2014-01-18).pdf,
Figure 3_View_top 007 (2014-01-18).pdf
4. Copy from each folder files with the names "Figure5_slice B-B NoNoNo (GYG-MM-CH).pdf",
"Figure 8_Specification_B5372 NoNoNo (GYYYY-MM-CH).pdf", "Fig.21_Cost_processing NoNo(GYYYYY-MM-CH).pdf" in the same folder where the archives and newly created folders are located (all together, without subfolders).
5. Rename the copied files by deleting everything between the figure number and the folder number.
That is, leave "Figure5 NoNoNo (GYG-MM-ChCh).pdf", "Figure21 NoNoNo (GYG-MM-Ch).pdf";
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
As a supplement, and, accordingly, for the supplement. fee:
Open the pulled PDFs with FoxitReader 4.3, save them as text. Then open the resulting .txt files in EmEditor and execute the script (the script itself is written, you just need to run it automatically).