Above code workd fine in browser but it shows the following message when executed inside exeoutput environment: The current directory is invalid.
Please help, its really urgent.
Hi, The reply was too late but I am happy that Exeoutput can accomplish that.
However, I also found another way out. If we set a manual location for the Data folder in settings, wmic starts working with perfection. I have done it in Windows 10 pro, havent tried it in other OS versions. If anybody gets it working in other OS variants, please let us know.