This example will go through a directory tree and stores a list of the inner most folders in a text file.
VXM Script: (Copy and Paste into vTask)<step>
<action>Comment</action>
<comment>This script will go through all folders recursively and gives you a list of the inner most folder names. </comment>
</step>
<step>
<action>Start Folders Loop</action>
<text>C:\Downloads\*</text>
<options>Recursive</options>
<output value="%folderName">Variable</output>
<comment><---- Change here</comment>
</step>
<step>
<action>Comment</action>
<indents>1</indents>
<comment>See how many folders inside the current folder.</comment>
</step>
<step>
<action>Count Files/Folders</action>
<text>%folderName\*.*</text>
<options>Folders</options>
<indents>1</indents>
<output value="%folderCount">Variable</output>
</step>
<step>
<action>Comment</action>
<indents>1</indents>
<comment>Does this folder has no sub-folder, then it IS the inner most folder.</comment>
</step>
<step>
<action>IF Expression</action>
<text>%folderCount = 0</text>
<indents>1</indents>
</step>
<step>
<action>Write/Create File</action>
<text>%folderName{newline}</text>
<value1>c:\folderNames.txt</value1>
<value2>-1</value2>
<indents>2</indents>
<comment><---- Change here</comment>
</step>
<step>
<action>END IF</action>
<indents>1</indents>
</step>
<step>
<action>NEXT LOOP</action>
</step>