Author: rmetzger
Subject: PSService
Posted: 01 February 2013 at 3:29pm
2>NUL sends StdErr to the NUL device.
Hope this helps.
Ron Metzger
Edited by rmetzger - 16 hours 20 minutes ago at 3:40pm
Subject: PSService
Posted: 01 February 2013 at 3:29pm
Hi randle
randle wrote:
'Is it at all possible to hide the psservice tool information from appearing in a script? i.e "Service information and configuration utility...."'
"Service information and configuration utility...." is output to StdErr. So, to eliminate all error messages including the 'Service information..." send stderr to NUL.
An example might be:
PSservice query wuauserv 2>nulrandle wrote:
'Is it at all possible to hide the psservice tool information from appearing in a script? i.e "Service information and configuration utility...."'
"Service information and configuration utility...." is output to StdErr. So, to eliminate all error messages including the 'Service information..." send stderr to NUL.
An example might be:
2>NUL sends StdErr to the NUL device.
Hope this helps.
Ron Metzger
Edited by rmetzger - 16 hours 20 minutes ago at 3:40pm