Shell exec in windows

shell_exec function not working in windows.
It works perfectly fine in linux.

What could be the reason? Is there any specific setting required for it?

What command are you trying to run?

anything,

eg. print_r(shell_exec(‘ls -la’));

well, ls -la isnt a valid windows command, for starters.

yes it doesn’t work in windows!

print_r(shell_exec(‘dir’));
it works
Thanks!