Мне нужен мой вывод для чтения в виде текстового файла. Вот три файла. (1) В настоящее время я в качестве входного файла (2) В настоящее время я в качестве выходного файла (3) На самом деле, что мне нужно как из положитьBatch Script для получения размера текстового файла
У меня есть шесть .ptp файлов. Это от G-кода. Мне нужно, чтобы размер каждого файла, построчно же, как и в ряде (3) В качестве примера: Размер «01.ptp» является 123290 байт
//(1)
@ECHO OFF
set "filename=*.ptp"
set "filename1=*_MachTime.txt"
for %%A in (%filename1%) do (
for %%B in (%filename%) do (
echo Size of "%%B" is %%~zB bytes >>shop1.txt
)
type %%A >>shop1.txt
)
exit
//(2)
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG01 Time 26.92 MIN.
O0010 ToolD5_FLAT S 3000.00 F 300.00 Z -64.00 mm
--------------------------------------------------------------------------------------
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG02 Time 2.59 MIN.
O0020 ToolD2X10_FLAT S 7500.00 F 200.00 Z -57.20 mm
--------------------------------------------------------------------------------------
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG03 Time 8.30 MIN.
O0030 ToolD1X4_FLAT S 7500.00 F 100.00 Z -56.00 mm
--------------------------------------------------------------------------------------
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG04 Time 8.03 MIN.
O0040 ToolD1X4_FLAT S 7500.00 F 100.00 Z -56.00 mm
--------------------------------------------------------------------------------------
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG05 Time 7.10 MIN.
O0050 ToolD1_BALL S 7500.00 F 200.00 Z -50.27 mm
--------------------------------------------------------------------------------------
Size of "01.ptp" is 123290 bytes
Size of "02.ptp" is 7714 bytes
Size of "03.ptp" is 43473 bytes
Size of "04.ptp" is 41137 bytes
Size of "05.ptp" is 45802 bytes
Size of "06.ptp" is 75346 bytes
//////(3)
Size of "01.ptp" is 123290 bytes
=======================================================================================
LAB12JT01-UG01 Time 26.92 MIN.
O0010 ToolD5_FLAT S 3000.00 F 300.00 Z -64.00 mm
--------------------------------------------------------------------------------------
Size of "02.ptp" is 7714 bytes
=======================================================================================
LAB12JT01-UG02 Time 2.59 MIN.
O0020 ToolD2X10_FLAT S 7500.00 F 200.00 Z -57.20 mm
--------------------------------------------------------------------------------------
Size of "03.ptp" is 43473 bytes
===================================================================================
LAB12JT01-UG03 Time 8.30 MIN.
O0030 ToolD1X4_FLAT S 7500.00 F 100.00 Z -56.00 mm
--------------------------------------------------------------------------------------
Size of "04.ptp" is 41137 bytes
=======================================================================================
LAB12JT01-UG04 Time 8.03 MIN.
O0040 ToolD1X4_FLAT S 7500.00 F 100.00 Z -56.00 mm
--------------------------------------------------------------------------------------
Size of "05.ptp" is 45802 bytes
=======================================================================================
LAB12JT01-UG05 Time 7.10 MIN.
O0050 ToolD1_BALL S 7500.00 F 200.00 Z -50.27 mm
--------------------------------------------------------------------------------------
Size of "06.ptp" is 75346 bytes
=======================================================================================
LAB12JT01-UG06 Time 8.69 MIN.
O0060 ToolD0.6_FLAT S 7500.00 F 100.00 Z -51.60 mm
--------------------------------------------------------------------------------------
Почему это помечено 'javascript' и' java'? –
Я в порядке с ответами на Java и Java-скрипт также – Suba
Пожалуйста, переформатируйте свой вопрос! Взгляните на него - разве это не хаотично? – aschipfl