Check out example codes for "use ls in windows". It will help you in understanding the concepts better.

Code Example 1

echo @dir %* > %systemroot%\system32\ls.bat

Make sure you are running cmd as admin

Learn ReactJs, React Native from akashmittal.com