-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathremove.bat
64 lines (49 loc) · 1.57 KB
/
remove.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@ECHO OFF
ECHO ###########################################################
ECHO ################## REMOVE DATASETS ########################
ECHO ###########################################################
:: This batch file is executable only for deleting all dataset .mat and
:: .npy files, to make possible to push the Github project
:: %cd% refers to the current working directory
SET hDataset_file=%cd%\output\dataset\hDataset.mat
SET rDataset_file=%cd%\output\dataset\rDataset.mat
SET hDataset_file_one=%cd%\output\dataset\oneClass\hDataset.mat
SET wd_results_file=%cd%\output\wigner_distribution\wd_results.npy
ECHO This batch file will delete the datasets (.mat and .npy)
SET /p delDatasets=Delete datasets [y/n]?:
IF "%delDatasets%" == "n" (
ECHO Closing batch file...
PAUSE
EXIT
)
IF "%delDatasets%" == "y" (
ECHO Start deleting .mat files...
)
IF EXIST %hDataset_file% (
DEL %hDataset_file%
ECHO Deleted hologram database!
) ELSE (
ECHO Hologram database does not exist!
)
IF EXIST %rDataset_file% (
DEL %rDataset_file%
ECHO Deleted reconstructed images database!
) ELSE (
ECHO Reconstructed images database does not exist!
)
IF EXIST %hDataset_file_one% (
DEL %hDataset_file_one%
ECHO Deleted hologram database one class!
) ELSE (
ECHO Hologram database one class does not exist!
)
ECHO Start deleting .npy files...
IF EXIST %wd_results_file% (
DEL %wd_results_file%
ECHO Deleted wigner distributions database!
) ELSE (
ECHO Wigner distributions database does not exist!
)
ECHO All files removed!
ECHO ###########################################################
PAUSE