-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.cmd
More file actions
18 lines (18 loc) · 741 Bytes
/
test1.cmd
File metadata and controls
18 lines (18 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
echo ===========================================================
echo La sortida ha de dir "no s'han trobat diferencies"
echo Les seguents linies son una sortida correcta (en angles):
echo.
echo -Comparing files hopedOut.txt and out.txt
echo -FC: no differences encountered
echo ===========================================================
echo.
echo Compilant, executant i comparant sortides:
if exist out1.txt erase out1.txt
if exist class\uoc rd class\uoc /q /s
mkdir class
javac -encoding UTF-8 -g -classpath .;lib\tads.jar -d class src\uoc\ded\practica\*.java
if %ERRORLEVEL%==0 java -classpath class;lib\tads.jar uoc.ded.practica.TestPractica in1.txt out1.txt
echo.
if %ERRORLEVEL%==0 FC /L /N /W hopedOut1.txt out1.txt
pause