Question
Finding number of files in folder issue.
Hi there,
I just want to check number of files in folder.
//Actual code to get number of files in folder in cmd.
dir /b /s /a-d "E:\\myFolder\\*.jpg\" | find /c /v ""
//modified in jsx below
var count=system.callSystem("cmd /c \"dir /b /s /a-d \"E:\\myFolder\\*.jpg\" | find /c /v \"\" \"");
alert(count);
or
var count=system.callSystem("cmd /c \"dir /b /s /a-d \"E:\\myFolder\\*.jpg\" | find /c /v \"\" > \"E:\\testRun\\res.txt\"\"");
None works.
Someone help.
