-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdemo.bat
34 lines (29 loc) · 930 Bytes
/
demo.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
@echo off
cargo build --examples
echo Run deletes-itself.exe
target\debug\examples\deletes-itself.exe
if not exist target\debug\examples\deletes-itself.exe (
echo deletes-itself.exe was successfully deleted
)
echo.
echo Run deletes-itself-at.exe
target\debug\examples\deletes-itself-at.exe
if not exist target\debug\examples\deletes-itself-at.exe (
if not exist target\debug\examples\deletes-itself-renamed.exe (
echo deletes-itself-at.exe and deletes-itself-renamed.exe were successfully deleted
)
)
echo.
echo Run hello.exe
target\debug\examples\hello.exe
echo.
echo Run replaces-itself.exe
target\debug\examples\replaces-itself.exe
echo Run replaces-itself.exe
target\debug\examples\replaces-itself.exe
echo.
echo Run deletes-itself-outside-path.exe
target\debug\examples\deletes-itself-outside-path.exe
if not exist target\debug\examples\NUL (
echo built examples were successfully deleted
)