79261389

Date: 2024-12-07 21:01:21
Score: 0.5
Natty:
Report link

Since noone has provided any answer will provide my solution, which uses delayed variable expansion for variables used inside for loop.

@echo off
setlocal EnableDelayedExpansion
cd e:\WORK\NetBeansProjects\potyczki
pwd
set testdir=D:\___Potyczki_Algorytmiczne\2024\mro_tests
for %%f in (%testdir%\*.in) do (
    set inname=%%f
    call set outname=%%inname:in=out%%
    call java -classpath target/classes/ pl.kazanik.potyczki._2024.Mrowki !outname! < !inname!
)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 10101101