Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to send an output of two variables into a single line?

$
0
0

Trying to display File name and creation date in a single row.

 

Write-Host $File.Name, $File.CreationDate | Format-Table -auto

 

This gives me one under the other instead of in the same row....


Viewing all articles
Browse latest Browse all 6937

Trending Articles