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.