I am trying to make a method that takes in a cmd command (nslookup, systeminfo, etc), and outputs the response to a text file. I have tried a dozen different ways with no success. below is my most current failure.
Could anyone tell me where I am going wrong? It succeeds when i run it, but nothing shows up in the text file.
Could anyone tell me where I am going wrong? It succeeds when i run it, but nothing shows up in the text file.