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