@echo off
chcp 1250

FOR /F "tokens=*" %%G IN ('dir /b /AD G:\') DO echo prefix_%%G >> %temp%\soubor.txt

start %temp%\soubor.txt
