Export directory structure to txt

I think these are the commands you meant from the theme...

<?xml version="1.0" encoding="UTF-8"?> <usercommand> <label>UserCommand2</label> <tip>Displays a printable folder tree report (with or without files) of folder in Notepad.</tip> <template>FILES/S,PATH/K</template> <icon1>137</icon1> <function type="batch"> <instruction>Runmode Hide</instruction> <instruction>@nofilenamequoting</instruction> <instruction>@firstfileonly</instruction> <instruction>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</instruction> <instruction>:: ::</instruction> <instruction>:: PrintTree ::</instruction> <instruction>:: Directory Opus 8 User Command wrapper for Tree.com ::</instruction> <instruction>:: Version: 2.0 ::</instruction> <instruction>:: Kenneth R. Alcock ::</instruction> <instruction>:: ::</instruction> <instruction>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</instruction> <instruction>:Start</instruction> <instruction> @Echo OFF &amp; If /i NOT [%OS%]==[Windows_NT] Goto 95-98-ME</instruction> <instruction> Title Folder Tree Report</instruction> <instruction>:SetVars</instruction> <instruction> Call Set ReportPath={sourcepath$|noterm}</instruction> <instruction> Call Set Filename=Folder Tree Report--{Date|yyyy&apos;-&apos;MM&apos;-&apos;yy}-{Time|HH&apos;.&apos;mm&apos;.&apos;ss}.txt</instruction> <instruction> Call Set Files=&amp;FILES&amp;</instruction> <instruction> Call Set PassedPath=&amp;PATH&amp;</instruction> <instruction> If .%Files%.==.1. (</instruction> <instruction> Call Set TreeParams=/A /F</instruction> <instruction> ) Else (</instruction> <instruction> Call Set TreeParams=/A</instruction> <instruction> )</instruction> <instruction> If Defined PassedPath (</instruction> <instruction> If Not Exist &quot;%PassedPath%\.&quot; (</instruction> <instruction> Call Set BadPath=TRUE</instruction> <instruction> ) Else (</instruction> <instruction> Call Set ReportPath=%PassedPath%</instruction> <instruction> )</instruction> <instruction> )</instruction> <instruction> </instruction> <instruction>:Report</instruction> <instruction> &gt; &quot;%TEMP%\%Filename%&quot; Echo.Date: {Date|yyyy&apos;-&apos;MM&apos;-&apos;yy} {Time|HH&apos;:&apos;mm&apos;:&apos;ss}</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. </instruction> <instruction> If Defined BadPath (</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. Invalid Path Passed!</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. %PassedPath%</instruction> <instruction> ) Else (</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Tree %TreeParams% &quot;%ReportPath%&quot;</instruction> <instruction> )</instruction> <instruction> Start /wait &quot;Notepad&quot; Notepad &quot;%TEMP%\%Filename%&quot;</instruction> <instruction> Del /Q &quot;%TEMP%\%Filename%&quot; &gt; Nul</instruction> <instruction> Goto :EOF</instruction> </function> </usercommand>

and

<?xml version="1.0" encoding="UTF-8"?> <usercommand> <label>UserCommand1</label> <tip>Displays a printable folder tree report (with or without files) of folder in Notepad.</tip> <template>FILES/S,PATH/K</template> <icon1>137</icon1> <function type="batch"> <instruction>Runmode Hide</instruction> <instruction>@nofilenamequoting</instruction> <instruction>@firstfileonly</instruction> <instruction>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</instruction> <instruction>:: ::</instruction> <instruction>:: PrintTree ::</instruction> <instruction>:: Directory Opus 8 User Command wrapper for Tree.com ::</instruction> <instruction>:: Version: 2.0 ::</instruction> <instruction>:: Kenneth R. Alcock ::</instruction> <instruction>:: ::</instruction> <instruction>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</instruction> <instruction>:Start</instruction> <instruction> @Echo OFF &amp; If /i NOT [%OS%]==[Windows_NT] Goto 95-98-ME</instruction> <instruction> Title Folder Tree Report</instruction> <instruction>:SetVars</instruction> <instruction> Call Set ReportPath={sourcepath$|noterm}</instruction> <instruction> Call Set Filename=Folder Tree Report--{Date|yyyy&apos;-&apos;MM&apos;-&apos;yy}-{Time|HH&apos;.&apos;mm&apos;.&apos;ss}.txt</instruction> <instruction> Call Set Files=&amp;FILES&amp;</instruction> <instruction> Call Set PassedPath=&amp;PATH&amp;</instruction> <instruction> If .%Files%.==.1. (</instruction> <instruction> Call Set TreeParams=/A /F</instruction> <instruction> ) Else (</instruction> <instruction> Call Set TreeParams=/A</instruction> <instruction> )</instruction> <instruction> If Defined PassedPath (</instruction> <instruction> If Not Exist &quot;%PassedPath%\.&quot; (</instruction> <instruction> Call Set BadPath=TRUE</instruction> <instruction> ) Else (</instruction> <instruction> Call Set ReportPath=%PassedPath%</instruction> <instruction> )</instruction> <instruction> )</instruction> <instruction> </instruction> <instruction>:Report</instruction> <instruction> &gt; &quot;%TEMP%\%Filename%&quot; Echo.Date: {Date|yyyy&apos;-&apos;MM&apos;-&apos;yy} {Time|HH&apos;:&apos;mm&apos;:&apos;ss}</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. </instruction> <instruction> If Defined BadPath (</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. Invalid Path Passed!</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Echo. %PassedPath%</instruction> <instruction> ) Else (</instruction> <instruction> &gt;&gt; &quot;%TEMP%\%Filename%&quot; Tree /F %TreeParams% &quot;%ReportPath%&quot;</instruction> <instruction> )</instruction> <instruction> Start /wait &quot;Notepad&quot; Notepad &quot;%TEMP%\%Filename%&quot;</instruction> <instruction> Del /Q &quot;%TEMP%\%Filename%&quot; &gt; Nul</instruction> <instruction> Goto :EOF</instruction> </function> </usercommand>

For much more information see this topic which is where the buttons first came from.