summaryrefslogtreecommitdiff
path: root/plugins/IMO2sProxy/bin/setupimo.bat
blob: 9c765c64796c4c65637db75c09f2736b12c9c0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
SET /P USER=Skype username:
IF "%USER%"=="" (
  echo Username is mandatory, aborting.
  GOTO fini
)
SET /P PASS=Skype password:
IF "%PASS%"=="" (
  echo Password is mandatory, aborting.
  GOTO fini
)
SET /P IP=Bind to IP [0.0.0.0]:
SET /P PORT=Bind to Port [1401]:
SET /P DAEM=Do you want to daemonize [N]:
IF /I "%DAEM%" NEQ "Y" SET /P VERB=Do you want verbose command output [N]:
IF /I "%DAEM%"=="Y" SET CMDLINE=%CMDLINE% -d
IF /I "%VERB%"=="Y" SET CMDLINE=%CMDLINE% -v
IF NOT "%IP%"=="" SET CMDLINE=%CMDLINE% -h %IP%
IF NOT "%PORT%"=="" SET CMDLINE=%CMDLINE% -p %PORT%
SET CMDLINE=%CMDLINE% %USER% %PASS%
echo imo2sproxy %CMDLINE% >startimo.bat
echo startimo.bat created.
:fini
pause