-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bulbabot data uploading.bat
51 lines (43 loc) · 1.04 KB
/
Bulbabot data uploading.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
@echo off
:start
SET /A e=0
SET /p again="Do you want to update only bulbabot pkg in catkin_ws folder? [y/n]: "
IF /I %again%==y (GOTO default) ELSE (
IF /I %again%==n (GOTO notDefault) ELSE (
SET /A e=1
GOTO error
)
)
:default
ECHO Uploading the new project files from bulbabot pkg to Bulbabot
ECHO.
scp -r C:\Users\Alessandro\Documents\GitHub\BulbaBot2.0\catkin_ws\src\bulbabot [email protected]:/home/ubuntu/catkin_ws/src
GOTO end
:notDefault
ECHO Available folders for saving:
dir
:listing
ECHO.
SET /A e=1
SET /p final="Which folder do you want to save? "
ECHO Uploading the new project files from %final% to Bulbabot
ECHO.
scp -r C:\Users\Alessandro\Documents\GitHub\BulbaBot2.0\%final% [email protected]:/home/ubuntu
:resave
SET /A e=0
SET /p again="Do you want to save something else? [y/n]: "
IF /I %again%==y (GOTO listing) ELSE (
IF /I %again%==n (GOTO end) ELSE (
SET /A e=2
GOTO error
)
)
:error
ECHO.
ECHO Not valid input, retry.
ECHO.
if %e%==1 (GOTO start) ELSE (GOTO listing)
:end
ECHO.
ECHO Operation completed
PAUSE