-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcheck.bat
35 lines (20 loc) · 865 Bytes
/
mcheck.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
:: Syntax: mcheck.bat
::
:: For each input file "x.in", check whether "x.out2" and "x.out" are the same.
@echo off
setlocal EnableDelayedExpansion
SET "Pattern=in"
SET "Replace1=out"
SET "Replace2=out2"
for %%a in ("testData\*.in") do (
REM echo %%a
SET "File=%%~nxa"
java checkfiles "testData\!File:%Pattern%=%Replace1%!" "testData\!File:%Pattern%=%Replace2%!"
)
:: checkfiles "testData\!File:%Pattern%=%Replace1%!" "testData\!File:%Pattern%=%Replace2%!"
:: java -cp c:\users\team\JavaBin checkfiles "testData\!File:%Pattern%=%Replace1%!" "testData\!File:%Pattern%=%Replace2%!"
:: SET "file1 = testData\!File:%Pattern%=%Replace1%!"
:: SET "file2 = testData\!File:%Pattern%=%Replace2%!"
:: echo file1
:: echo file2
:: java checkfiles "testData\!File:%Pattern%=%Replace1%!" "testData\!File:%Pattern%=%Replace2%!"