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