locked
Redirection does not work RRS feed

  • Question

  • Push-Location-Path $DatabasePath 2>>C:\temp\err.txt

    When I force an error it does not get written to the file. The time stamp changes but the file is empty.

    Any help would be greatly appreciated.



    • Edited by KGN-Jack Thursday, May 25, 2017 12:01 PM Displayed incorrectly
    Thursday, May 25, 2017 11:59 AM

Answers

  • Could this be the reason?

    The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop:

    • Marked as answer by KGN-Jack Thursday, May 25, 2017 2:36 PM
    Thursday, May 25, 2017 1:41 PM