How can you use Test-Path (or any other function) to test if a folder exists - ignoring any trailing file names?
I need this to test if the target folder exists in order to write an output file to it. My script accepts a "full path" parameter like "C:\Temp\myexport.csv", and I only need to know that C:\Temp exists in order to be able to create the file.
Thank you