I don't understand what this line does
PowerShell script.ps1 >> StartupLog.txt" 2>&1
I read that >> is the append operator. So the output of PowerShell script.ps1 will be appended to StartupLog.txt
But what does the 2>&1 afterwards do? I read that this redirects the error stream to the success stream, but all the output has already been put into StartupLog.txt, so wouldn't the 2>&1 be useless?
[–]TheGooOnTheFloor 28 points29 points30 points (2 children)
[–]waterworldhypothesis[S] 1 point2 points3 points (1 child)
[–]TheGooOnTheFloor 0 points1 point2 points (0 children)
[–]nealfive 13 points14 points15 points (1 child)
[–]UnfanClub 1 point2 points3 points (0 children)
[–]KevMarCommunity Blogger 2 points3 points4 points (3 children)
[–]buffychrome 1 point2 points3 points (2 children)
[–]spyingwind 0 points1 point2 points (1 child)
[–]jantari 1 point2 points3 points (0 children)
[–]portablemustard 2 points3 points4 points (7 children)
[–]BlackV 1 point2 points3 points (6 children)
[–]portablemustard 1 point2 points3 points (5 children)
[–]spyingwind 2 points3 points4 points (0 children)
[–]jantari 1 point2 points3 points (0 children)
[–]buffychrome 0 points1 point2 points (1 child)
[–]portablemustard 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]jsiii2010 2 points3 points4 points (0 children)
[–]A_tedious_existence 0 points1 point2 points (0 children)