Batch script vs command line

一世执手 提交于 2019-12-06 07:42:49

The % character has a special meaning for command line parameters and FOR parameters.

To treat a percent as a regular character, double it: %%

When you execute it from a batch file, you should write it like this :

@echo on
for /R %%f in (*.shp) do ogr2ogr -nln merge -update -append merge.shp %%f 
pause

See this for more info : http://ss64.com/nt/syntax-esc.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!