helpwanted Posted December 29, 2006 Share Posted December 29, 2006 Hi All, I have tried with shell_exec() in PHP for listing a list of directories in side a main dir$ouput = shell_exec("dir C:\\php /s /b /a:d");This is not working fine.Is shell_exec will not work for windows commands?$ouput = shell_exec("dir C:\\php /s /b ");This is not working for listing of filenames with full pathPlease help Link to comment https://forums.phpfreaks.com/topic/32146-shell_exec-is-not-working/ Share on other sites More sharing options...
trq Posted December 29, 2006 Share Posted December 29, 2006 The question is why would you be trying to do it through a windows command? PHP has many file and directory functions, use them. Link to comment https://forums.phpfreaks.com/topic/32146-shell_exec-is-not-working/#findComment-149186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.