CLI script not working, despite copied from CapturingReality

Hi all, I’m trying for the first time the CLI scripts, I downloaded the script from an official Capturing Reality channel but it doesn’t launch the automation.
When I double click the .bat file, it opens then quits immediately the command prompt. I don’t find any errors in the script, which is reported below here:

set PATH=%PATH%;C:\Program Files\Capturing Reality\RealityCapture\
set path="path_to_my_project_folder"

RealityCapture.exe ^
 -newScene ^
 -set "appGroupCalibrationByExif=true" ^
 -set "sfmImagesOverlap=Low" ^
 -set "sfmMaxFeatureReprojectionError=2.0" ^
 -set "sfmDetectorSensitivity=Medium" ^
 -set "sfmDistortionModel=Brown3WithTangential2" ^
 -setProjectCoordinateSystem epsg:32632 ^
 -setOutputCoordinateSystem epsg:32632 ^
 -add %path%\Image_Lists\P2.imagelist ^
 -align ^
 -save %path%\PL2.rcproj ^
 -importImageSelection %path%\Image_lists\P2.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\PL2.rcproj ^
 -quit

RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\P3.imagelist ^
 -align ^
 -save %path%\PL3.rcproj ^
 -importImageSelection %path%\Image_lists\P3.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\PL3.rcproj ^
 -quit
 
 RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\P4.imagelist ^
 -align ^
 -save %path%\PL4.rcproj ^
 -importImageSelection %path%\Image_lists\P4.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\PL4.rcproj ^
 -quit
 
 RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\P5.imagelist ^
 -align ^
 -save %path%\PL5.rcproj ^
 -importImageSelection %path%\Image_lists\P5.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\PL5.rcproj ^
 -quit
 
 RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\CM3.imagelist ^
 -align ^
 -save %path%\CM3.rcproj ^
 -importImageSelection %path%\Image_lists\CM3.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\CM3.rcproj ^
 -quit
 
  RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\CM4.imagelist ^
 -align ^
 -save %path%\CM4.rcproj ^
 -importImageSelection %path%\Image_lists\CM4.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\CM4.rcproj ^
 -quit
 
  RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\CM5.imagelist ^
 -align ^
 -save %path%\CM5.rcproj ^
 -importImageSelection %path%\Image_lists\CM5.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\CM5.rcproj ^
 -quit
 
   RealityCapture.exe ^
 -newScene ^
 -add %path%\Image_Lists\PointCloud.imagelist ^
 -align ^
 -save %path%\PointCloud.rcproj ^
 -importImageSelection %path%\Image_lists\PointCloud.imagelist ^
 -setPriorCalibrationGroup -1 ^
 -setPriorLensGroup -1 ^
 -align ^
 -save %path%\PointCloud.rcproj ^
 -quit

Can you support me to understand why this script doesn’t work?

Thanks.

Hi @Digital_Asset
From where have you downloaded that script?

It looks like you have the problem with first definition
set PATH=%PATH%;C:\Program Files\Capturing Reality\RealityCapture\

Instead of that try to use
set RealityCapture.exe="C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe"
and start the app with
%RealityCapture.exe%

Hello,

I found the script in a YouTube video (official RC channel) in the video description section.

I’m going to try to change the line, and will let you know.

Thanks for your support.

Ok, now it works: probably the former script was set for an old version of RC.

Thank you!