79239794

Date: 2024-11-30 14:59:29
Score: 3.5
Natty:
Report link

Why not use:

Test-Path (path goes here) -ErrorAction Stop

to generate a trappable exception that you can handle? That way, you don’t have to comb through the error record for the specifics?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not use
  • Low reputation (1):
Posted by: Todd Seward