ls in windows 10 code example Example: use ls in windows echo @dir %* > %systemroot%\system32\ls.bat Make sure you are running cmd as admin