v příkazech je chyba, cesta musí být v uvozovkách:dir /a:h > "%temp%\dirh.txt" notepad "%temp%\dirh.txt"