Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Parse a file name and export to a CSV file

$
0
0

I would like to scan a folder that contains JPG files and parse the file name into a CSV file.  All the files have exact same convention separated by "-".  (For example:  800x800-Visio-large.jpg)  I would like CSV file to contain 3 separate columns; Resolution, Type and Size.

I tried and I'm having issue converting object to string since I don't want .jpg in the CSV file.


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images