我需要从nant脚本执行7zip命令。我怎么能这样做?
我已经尝试过这样,但它无法正常工作
& ltexec program =“7z.exe”basedir =“$ {sevenzipinstalldir}”commandline =“7z a D:\ NantTest \ Experiment \ NewLab \ 7ziptest.zip -pmypassword D:\ NantTest \ Experiment \ NewLab \”
答案 0 :(得分:3)
<exec program="7z.exe" basedir="${sevenzipinstalldir}" commandline="a D:\NantTest\Experiment\NewLab\7ziptest.zip -pmypassword D:\NantTest\Experiment\NewLab\" />
(不要在commandline
重复可执行文件名。)