program define go2cgdstataref
*!	version 1.0 12May2023
	version 11

	syntax [anything]

	if "`anything'"=="" {
		di as txt "Inside the CGD office or, if you have a CGD password, outside the office,"   ///
			_n "click here to open the root directory of CGD's FileShare server in your internet browser:"             ///
			_n as txt "-->  "  ///
			`"{browse "https://centerforglobaldevelop.sharepoint.com/sites/fileshare/Shared%20Documents/Forms/AllItems.aspx":CGD's FileShare server}"'

		di as txt `"Then, in your browser window, click on the folder named "Stata_Reference""'

		exit
	}
	else if strpos(lower("`anything'"),"stata") | strpos(lower("`anything'"),"ref") | strpos(lower("`anything'"),"train") | strpos(lower("`anything'"),"learn") | strpos(lower("`anything'"),"learn") {

			di as txt "Go directly to the Stata Reference folder on the FileShare by clicking here:"             ///
				_n as txt "-->  "  ///
				`"{browse "https://centerforglobaldevelop.sharepoint.com/sites/fileshare/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2Ffileshare%2FShared%20Documents%2FStata%5FReference&viewid=23e5bfee%2D12a8%2D4a15%2Dac13%2Dfba17c53a2db":Stata Reference folder on CGD's FileShare server}"'

		exit
	}
	else if strpos(lower("`anything'"),"sj") | strpos(lower("`anything'"),"journ")   {

		di as txt "Go directly to the Stata Journals folder on the FileShare by clicking here:"             ///
			_n as txt "-->  "  ///
			`"{browse "https://centerforglobaldevelop.sharepoint.com/sites/fileshare/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2Ffileshare%2FShared%20Documents%2FStata%5FReference%2FStata%20Journals&viewid=23e5bfee%2D12a8%2D4a15%2Dac13%2Dfba17c53a2db":Stata Journals folder on CGD's FileShare server}"'

		exit

	}
	else {

		di as err "You typed: " as inp "go2cgdstataref `anything'"  ///
			_n as err "Syntax error: The keyword -" as inp "`anything'" as err "- is unrecognizable"  ///
			_n as txt "Possible keywords include:"  ///
			_n _col(4) as res "{it}nothing{sf}"  _col(20) as txt "Open the root folder of CGD's FileShare server"  ///
			_n _col(4) as res "stata"  _col(20) as txt "Open the folder -Stata_Reference-. (Synonyms are: reference, training, learn, help)"  ///
			_n _col(4) as res "sj"  _col(20) as txt "Open the folder -Stata Journals-"

		exit 198
	}

end