'''Procedure to create spatial indexes for shapefiles on DOS shell'''[[BR]] I often need to create indexes for shapefiles. The shapefiles are on remote disc and are on many gerarchical folders[[BR]] So I use this simply but surely useful procedure to create the indexes using a dos shell. ---- Suppose the path to the root filder of shapefile is:[[BR]] F:\folder1\folder2[[BR]] you must run this simply script from a shell dos.[[BR]] {{{ for /R F:\folder1\folder2 %f IN (*.shp) do ogrinfo.exe -sql "CREATE SPATIAL INDEX ON %~nf" "%f" }}} The script start from F:\folder1\folder2 and recurse on all the folders creating the spatial index for every shapefile found. Happy indexing. Andrea Peri.