Batch process multiple files?
Posted: Fri Jun 12, 2020 6:19 pm
Hi,
I'm not very good a coding but I'm trying to write a small batch file for Windows that I can place in a folder containing a bunch of tiled .las files to generate a tiled RGB raster.
This is my batch file:
In general it works.
Unfortunately, it is opening all files one after the other without waiting until CloudCompare has finished processing one file. Is there a way to get a some sort of "finished" signal from CC so the batch can continue with the next file? Or am I asking too much from such a simple batch file? :)
I'm not very good a coding but I'm trying to write a small batch file for Windows that I can place in a folder containing a bunch of tiled .las files to generate a tiled RGB raster.
This is my batch file:
Code: Select all
@ECHO OFF
set /p grid="Enter grid size in meters: "
for %%f in (*.las) do (
START C:\"Program Files"\CloudCompare\cloudcompare.exe -O -GLOBAL_SHIFT AUTO "%%~nf.las" -RASTERIZE -GRID_STEP %grid% -PROJ AVG -EMPTY_FILL INTERP -OUTPUT_RASTER_RGB
)
PAUSE
Unfortunately, it is opening all files one after the other without waiting until CloudCompare has finished processing one file. Is there a way to get a some sort of "finished" signal from CC so the batch can continue with the next file? Or am I asking too much from such a simple batch file? :)