I am working on ETL job where we have used the below command to get the File names from the folder and it will also count the rows for each file.
exec( '/usr/bin/ksh', '-c "cd [$PFileDir];/usr/bin/wc -l [$PFileName] > [$PFileDir]/ETL_FILE_LIST"',2);
Now, I want the same functionality in Windows command, and not sure how to do it.
Any help will be highly appreciated.