@echo off
setlocal EnableDelayedExpansion
echo Interface to Google Chart Geo or Map Chart interfacer created by RJM Programming ...
echo.
set text = ""
set equl = "="
set underscore = "__"
set centralplace = ""
set /p verb=Verb for command line eg. firefox eg. curl eg. map  
if not defined verb set verb = "map"
if defined verb goto goonverb
set verb = "map"
:goonverb
if "!verb!" == "" set verb = "map"
echo.
set /p commastring=Enter comma separated list of placenames, or list of countries eg. Sydney,London,Beijing,Paris,Rome,Boston,Santiago,Cairo,Istanbul,New_Delhi 
if not defined commastring goto veryend
if "!verb!" == "map" goto gopastc
echo.
set /p centralplace=Enter optional central country  eg. Italy 
:gopastc
echo.
set /p width=Enter width  eg. 1112 
if defined verb goto goonwidth
set width = "556"
:goonwidth
echo.
set /p height=Enter height eg. 694 
if defined verb goto goonheight
set height = "347"
:goonheight
echo.
set /p text=Enter the word text for text display 
echo.
echo 'Starting the call ...'
if "!verb!" == "map" goto gopastxc
echo %verb% "https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%_listis=%commastring%"
%verb% "https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%_listis=%commastring%"
exit
:gopastxc
echo C:\Progra~1\INTERN~1\iexplore.exe "https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%___listis=%commastring%#mapit=y"
C:\Progra~1\INTERN~1\iexplore.exe "https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%___listis=%commastring%#mapit=y"
exit
:veryend
exit
