Changeset 20615 for gsdl/trunk/gsicontrol.bat
- Timestamp:
- 2009-09-16T15:29:02+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/gsicontrol.bat
r20505 r20615 186 186 echo Found port %port% 187 187 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^externalaccess %configfile%') do set connect=%%G 188 if "%connect%" == "1" (set connect=yes) else (set connect=no) 188 189 if "%connect%" == "1" set allowfrom="all"& goto portcon 190 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^host %configfile%') do set allowfrom=%%G 189 191 190 192 :: Using CALL to jump to labels means we can return from them. BUT need to ensure … … 197 199 set /p port=Enter port number to use: 198 200 set /p connect=Allow external connections [yes/no]: 201 if "%connect%" == "yes" set allowfrom="all"& goto portcon 202 if "%connect%" == "y" set allowfrom="all"& goto portcon 203 204 set /p allowfrom=Enter host (hostname, IP, localhost, 127.0.0.1) to use: 205 goto portcon 199 206 200 207 :portcon 201 if "%connect%" == "yes" set allowfrom="all"& goto portcon2202 if "%connect%" == "y" set allowfrom="all"& goto portcon2203 set allowfrom="127.0.0.1"204 goto portcon2205 206 :portcon2207 208 if "%port%" == "" ( 208 209 echo Done … … 237 238 :exit 238 239 endlocal 239 240 241
Note:
See TracChangeset
for help on using the changeset viewer.