【发布时间】:2020-08-22 20:16:29
【问题描述】:
我正在尝试从 bat 文件运行应用程序“VolumeReconstructor.exe”,但出现错误
'VolumeReconstructor.exe' is not recognized as an internal or external command, operable program or batch file.
代码如下:
echo off
::Folder path
set location=D:\pigs_december\Converted_Data\test_data\
::File names
set config_file=PlusConfiguration_mysequence.xml
set image_file=TrackedImageSequence_20191207_172327_ICE_3D_Cubes_Intervall_0_1008.nrrd
::set mask_file=mask.png
::set output_file=Output.nrrd
:: Path to the VolumeReconstructor.exe (PlusTookit --> bin)
cd C:\Users\kristjan\PlusApp-2.9.0.20200316-Win64\bin\
:: with mask, but it does not work
::VolumeReconstructor.exe --config-file=%location%\%config_file% --source-seq-file=%location%\%image_file% --output-volume-file=%location%\%output_file% --importance-mask-file=%location%\%mask_file% --image-to-reference-transform=ImageToReference --verbose=4
VolumeReconstructor.exe --config-file=%location%\%config_file% --source-seq-file=%location%\%image_file% --output-volume-file=%location%\%output_file% --image-to-reference-transform=ImageToReference --verbose=4
pause
我做错了什么?
【问题讨论】:
-
运行
dir C:\Users\kristjan\PlusApp-2.9.0.20200316-Win64\bin\VolumeReconstructor.*并发布(edit 你的帖子)结果。 -
使用
cd /D而不是cd,以便在需要时也更改驱动器... -
谢谢大家!我让它工作了。添加绝对路径有效。
标签: file batch-file