I have a batch file that runs when a JButton
is clicked. The contents of the batch file is as follows:
@dsquery computer -name *%1
computerquery.bat FooUser > resultofbatch.txt
I'm having issues saving content to a txt file. The resultofbatch.txt gets created no problem, but it's blank and not saving the cmd prompt results to it. Any suggestions?