In a windows bat file how do I parse this url
https://vimeo.com/library/courses/angular-series
to get the text 'angular-series' without the single quotes of course
Thanks in advance for your time
In a windows bat file how do I parse this url
https://vimeo.com/library/courses/angular-series
to get the text 'angular-series' without the single quotes of course
Thanks in advance for your time
Read and apply Command Line arguments (Parameters); use next code snippet in a .bat or .cmd script:
for %%g in ("https://vimeo.com/library/courses/angular-series") do echo %%~nxg
Of course, instead of ECHOing resulting string, you could save it to a variable:
for %%g in ("https://vimeo.com/library/courses/angular-series") do set "_URL_leaf=%%~nxg"
echo %_URL_leaf%
Output from cmd command prompt:
==> for %g in ("https://vimeo.com/library/courses/angular-series") do @echo %~nxg
angular-series
==>