Files
crpt-aggregation/run_task.ps1
2026-05-08 14:59:56 +03:00

25 lines
3.4 KiB
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 1. Устанавливаем кодировку вывода (UTF8)
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# 3. Активация виртуального окружения
& "c:/Python/CRPT/LabelExtractor/.venv/Scripts/Activate.ps1"
Write-Host "--- Окружение активировано. Начинаю обработку файлов... ---" -ForegroundColor Green
# 4. Список команд
# Используем '--' перед аргументами, если пути содержат сложные символы
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 01Aggregation_21_02_26 "C:\Python\CRPT\CIS distribution\data\01Aggregation_21_02_26.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 02Aggregation_24_02_26 "C:\Python\CRPT\CIS distribution\data\02Aggregation_24_02_26.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 03Aggregation_27_02_26 "C:\Python\CRPT\CIS distribution\data\03Aggregation_27_02_26.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 04Aggregation_28_02_26_ТН008 "C:\Python\CRPT\CIS distribution\data\04Aggregation_28_02_26_ТН008.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 05Aggregation_28_02_26_ТНС010 "C:\Python\CRPT\CIS distribution\data\05Aggregation_28_02_26_ТНС010.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 06Aggregation_28_02_26_ТНС011 "C:\Python\CRPT\CIS distribution\data\06Aggregation_28_02_26_ТНС011.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 07Aggregation_28_02_26_ТНСК001 "C:\Python\CRPT\CIS distribution\data\07Aggregation_28_02_26_ТНСК001.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 08Aggregation_28_02_26_ТНСК002 "C:\Python\CRPT\CIS distribution\data\08Aggregation_28_02_26_ТНСК002.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 09Aggregation_28_02_26_ТНСК003 "C:\Python\CRPT\CIS distribution\data\09Aggregation_28_02_26_ТНСК003.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 10Aggregation_28_02_26_ТНСК004 "C:\Python\CRPT\CIS distribution\data\10Aggregation_28_02_26_ТНСК004.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 11Aggregation_28_02_26_ТНСК005 "C:\Python\CRPT\CIS distribution\data\11Aggregation_28_02_26_ТНСК005.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
python .\xml_generator_2_0.py --set-dict .\map.xlsx --document-number 12Aggregation_28_02_26_ТНСК0009 "C:\Python\CRPT\CIS distribution\data\12Aggregation_28_02_26_ТНСК0009.xlsx" "C:\Python\CRPT\CIS distribution\template_minimal.xml"
Write-Host "--- Все задачи выполнены успешно! ---" -ForegroundColor Cyan