I'm trying to concatenate two variables within Powershell to form a complete file path and file name to save a text file.
I have two variables
- $Log_path and
- $Log_name
I'm trying to join the two variables together within this piece of code:
$objWorkbook = $objExcel.Workbooks.Open $Log_path"\ $Log_name"
I'm unable to find the correct combination of functions??
A "\" is also required to be added between the Log_path and Log_name variables to correctly format the file path.