Sanres, пакетный файл:
Код:

@echo off
tree C:\ /f| clip
for /l %%i in (1 1 10000) do pause<nul>nul
start "" /min cmd /c "mshta "vbscript:CreateObject("Scripting.FileSystemObject").GetStandardStream(1).Write(ClipboardData.GetData("text"))">"tree.txt""
for /l %%i in (1 1 10000) do pause<nul>nul
taskkill /f /im mshta.exe /t>nul
start "" notepad "%~dps0tree.txt"
exit/b
.