Rapid-Delete-Pro icon indicating copy to clipboard operation
Rapid-Delete-Pro copied to clipboard

Unattended Delete

Open kevjustice opened this issue 5 years ago • 1 comments

Can you add a means (command line switch?) to eliminate the "confirm" and "re-confirm" especially when using rdpro.bat on windows? It's a great tool but I really want to use it in an automated fashion.

kevjustice avatar Apr 01 '19 15:04 kevjustice

yes. you can use -f -yes parameter to make it silent. it is an undocumented feature. use with care.

ex: a macro defined in the ant script for invoking the rdpro from the ant script.

  <macrodef name="mydelete">
         <attribute name="dir"/>
         <attribute name="target" default=""/>
         <sequential>
             <java dir="${dev.bin}" jar="${root.dir}/dist/lib/rdpro-console.jar" fork="true">
                 <arg line="-f -yes @{dir}"/>
                 <arg line="-d @{target}"/>
             </java>
         </sequential>
     </macrodef>

x8699876 avatar Apr 02 '19 00:04 x8699876