'ls' in CMD on Windows is not recognized Use the command dir to list all the directories and files in a directory; ls is a unix command.