AnsweredAssumed Answered

Output to empty file .... what am I missing?

Question asked by chill on Jan 20, 2017
Latest reply on Jan 20, 2017 by chill

OK, I have the following code as part of my ProcessBook Display:


Set WshShell = CreateObject("WScript.Shell")

WshShell.Run "cmd /c portqry -n myIPAddress -e 80 > C:\Temp\result.txt", 0, False


When I run this as part of my display, the output file gets created but is blank. If I got to Start Run and put in the code between the quotes (adding a valid network IP of course) I get the correct output in the file.


I am missing something I am sure. Anybody got any ideas what it is I am missing?


Any assistance is greatly appreciated.