How do you batch process when 2 input files involved?
Posted: Tue May 31, 2022 8:05 am
Hello.
There is something I've not been able to get around to and is that when I need to use Command Line with a command that has 2 files as inputs.
The cheesy way I managed was to setup an spreadsheet with each line being a command line with hardcoded path for the files involved in each operation. Like compute distance between 2 clouds. Later in cmd, paste about 5 entries each time. Which ressults in running 5 compares in paralell, and hope for the best in terms of RAM usage...
But there must be an smart way of telling the .bat to sequentially compare file 1 in folder 1 with file2 in folder2 , and do so till the end.
This in an entry of my spreadsheet
C:\Program Files\CloudCompare\cloudcompare.exe" -SILENT -C_EXPORT_FMT LAS -O E:\LIDAR_JAPAN\MMS8\LIDAR\03_Color_Levels \ 08OE2728_PCV.las -O E:\LIDAR_JAPAN\MMS8\MMS\_00_ORIGINAL \ 08OE2728.las -c2c_dist -MAX_DIST 0.25 -FILTER_SF 0.25 0.25 -SOR 8 2
For the file name what I did whast to list all files in a folder and copy paste, so setting that up is not that hard but feels cheapo. In particular when running list manually in parts, by hand...
There is something I've not been able to get around to and is that when I need to use Command Line with a command that has 2 files as inputs.
The cheesy way I managed was to setup an spreadsheet with each line being a command line with hardcoded path for the files involved in each operation. Like compute distance between 2 clouds. Later in cmd, paste about 5 entries each time. Which ressults in running 5 compares in paralell, and hope for the best in terms of RAM usage...
But there must be an smart way of telling the .bat to sequentially compare file 1 in folder 1 with file2 in folder2 , and do so till the end.
This in an entry of my spreadsheet
C:\Program Files\CloudCompare\cloudcompare.exe" -SILENT -C_EXPORT_FMT LAS -O E:\LIDAR_JAPAN\MMS8\LIDAR\03_Color_Levels \ 08OE2728_PCV.las -O E:\LIDAR_JAPAN\MMS8\MMS\_00_ORIGINAL \ 08OE2728.las -c2c_dist -MAX_DIST 0.25 -FILTER_SF 0.25 0.25 -SOR 8 2
For the file name what I did whast to list all files in a folder and copy paste, so setting that up is not that hard but feels cheapo. In particular when running list manually in parts, by hand...